Python Intro Flashcards

1
Q

What is Python?

A

A popular programming language created by Guido van Rossum in 1991

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is Python used for?

A

Web development
Software development
Mathematics
System scripting.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What can Python do?

A

Create web apps
Automate workflows
Connect to databases
Handle big data
Rapid prototyping

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Why use Python?

A

Works on many platforms Simple English-like syntax
Concise programs
Fast prototyping
Multi-paradigm

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the most recent major Python version?

A

Python 3

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Where can Python code be written?

A

In a text editor or an integrated development environment like Thonny

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How is Python designed for readability?

A

Uses whitespace for indentation instead of braces

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What makes Python syntax unique?

A

Influenced by English language and maths
Uses new lines instead of semicolons

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What does Python rely on to define scope?

A

Indentation and whitespace instead of curly brackets

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Can Python be used procedurally?

A

Yes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Can Python be used in an object-oriented way?

A

Yes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Can Python be used functionally?

A

Yes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Does Python work on different platforms?

A

Yes!
Windows, Mac, Linux, etc

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Is Python syntax similar to English?

A

Yes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Can Python programs be written with fewer lines than other languages?

A

Yes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

How is Python code executed?

A

Using an interpreter so it can run as soon as it’s written

17
Q

Why does an interpreter allow rapid prototyping?

A

No compilation step is required before execution

18
Q

What is the latest security-update-only version?

A

Python 2

19
Q

What IDEs can be used to write Python?

A

Thonny, PyCharm, NetBeans, Eclipse

20
Q

For what is Python particularly useful when managing larger codebases?

A

IDEs like PyCharm

21
Q

Python Expression Example

A

print(“Hello, World!”)