What is Python?
Variables & Strings
Loops
Lists
If, Elif, Else
100

What is Python?

A coding language

100

What is a string?

A sequence of characters that represent text.

100

What are the two types of loops?

While loops and for loops

100

What is a list?

An ordered collection of elements.

100

What is an elif statement?

Used when the first if statement isn't true, but you want to check for another condition.

200

What is a coding language?

A language computers understand.

200

What is the difference between an integer and a float?

A float has a decimal while an integer does not.

200

What do the following lines of code do?

fruits = ["hi", "8", "hello"]

for x in fruits:

  print(x)


They print:

hi

8

hello

200

What is the first position in a list?

0

200

What do the following lines of code do?

x = 3 

y = 10

if x < y: 

print("x is smaller than y.")

Prints a sentence if x is smaller than y.

300

What platform did we use for learning Python?

Replit

300

What is a variable?

A label you can assign to a line of code.


300

What does a while loop do?

Executes a set of statements as long as a condition is true.

300

Can lists be modified midway? Can we add or remove elements?

Yes, lists can be modified. 

300

Which 2 statements (if, elif, else) are used only once?

If and Else.