Print & Comments
Strings & Type Conversion
Integers & Floats
Arithmetic Operators
Code Tracing
100

This keyword displays output to the screen.

What is print()?

100

What data type is `"2025"`?

String (str)

100

<class 'int'>

This output indicates....


What is the type of int variable?


100

This operator is used for multiplication in Python?

What is '*'?

100

What will this print? `print("3" + "4")`

34

200

This print statement prints your name.

What is print("Your Name")

200

This statement converts the string `"45"` to an integer

int("45")


200

What’s the difference between an integer and a float?

Integers have no decimal point, floats do.

200

This modulo operation may evaluate to 1

What is 7%3?

200

What will this print? `print(int("5") + 3)`

8

300

This symbol is used to write comments.

What is '#'

300

What will `type("123" + str(4))` return?

<class 'str'>

300

What will `type(3.0 + 4)` return?


<class 'float'>

300

This is the result of: `4 + 3 * 2`

What is 10?

300

What will this print? `x = 5 print(x * 2 + 3)`

13

400

There is something wrong with this code: 

`print("Hello world!"`

What is a missing parenthesis?

400

What will `type("123" + str(4))` return?

105

400

Predict the output: `print(10 / 2)`

5.0

400

Fix the code: `print(9 // 0)`

This will raise a ZeroDivisionError.

400

Trace this code: `a = 4 b = 2 c = a // b + a % b print(c)`

2

500

This statement prints “Welcome to Python!” and includes a comment explaining it.

What is print("Welcome to Python!")  # This prints a welcome message?

500

Fix the error: `age = input("Age: ")` `print("You are " + age + 5)`

print("You are " + str(int(age) + 5))

500

What will `print(5 + 3.0)` output, and what is the type?

8.0, float

500

Explain the difference between `/` and `%` in Python.

`/` returns float division, `//` returns the remainder.


500

What is printed? `x = 2.5 y = int(x) + float("4.5") print(y)`

6.5