This keyword displays output to the screen.
What is print()?
What data type is `"2025"`?
String (str)
<class 'int'>
This output indicates....
What is the type of int variable?
This operator is used for multiplication in Python?
What is '*'?
What will this print? `print("3" + "4")`
34
This print statement prints your name.
What is print("Your Name")
This statement converts the string `"45"` to an integer
int("45")
What’s the difference between an integer and a float?
Integers have no decimal point, floats do.
This modulo operation may evaluate to 1
What is 7%3?
What will this print? `print(int("5") + 3)`
8
This symbol is used to write comments.
What is '#'
What will `type("123" + str(4))` return?
<class 'str'>
What will `type(3.0 + 4)` return?
<class 'float'>
This is the result of: `4 + 3 * 2`
What is 10?
What will this print? `x = 5 print(x * 2 + 3)`
13
There is something wrong with this code:
`print("Hello world!"`
What is a missing parenthesis?
What will `type("123" + str(4))` return?
105
Predict the output: `print(10 / 2)`
5.0
Fix the code: `print(9 // 0)`
This will raise a ZeroDivisionError.
Trace this code: `a = 4 b = 2 c = a // b + a % b print(c)`
2
This statement prints “Welcome to Python!” and includes a comment explaining it.
What is print("Welcome to Python!") # This prints a welcome message?
Fix the error: `age = input("Age: ")` `print("You are " + age + 5)`
print("You are " + str(int(age) + 5))
What will `print(5 + 3.0)` output, and what is the type?
8.0, float
Explain the difference between `/` and `%` in Python.
`/` returns float division, `//` returns the remainder.
What is printed? `x = 2.5 y = int(x) + float("4.5") print(y)`
6.5