Python Flashcards

1
Q

Who made python

A

Guido Van Rossum, a Dutch programmer who wrote python as a hobby project back in the late1980´s

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

How to save a python file

A

Open LMS or IDE
New python project
File name.extension

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

What are commands

A

Ways to communicate with a computer

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

How to teach a computer to speak

A

Print statement
Example:
print («flashcards») =
flashcards

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

How to print with quotation marks

A

Print (

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

What is syntax and indentation?

A

Syntax: rules to follow in proggraming
Indentation: Spaces before the start of a sentence

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

What is the indentation rule?

A

I Using a certain amount of spaces or special characters, then to continue, use same things, otherwise error

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

What do speech marks do

A

Get text as given, example:
print (4+4)= 8
print («4+4») =4+4

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

What is a variable

A

A word that stores data

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

What is declaring or initializing

A

Creating a variable

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

What are keywords in python

A

Predefined words that contain special meanings for the computer, can’t be a variable

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

What is a statement in python

A

Logical instruction that the computer executes

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

What is an expression in python

A

Type of statement that contains logic sequences of things

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

What are loops

A

Control structures that execute a block of code repeatedly based on a condition

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

What are the 2 main types of loops in python

A

Loops and while loops

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

What do while loops do

A

Execute a block of code as long as condition is true