🖨️Print Zone
📦 Variables & Data
🔁 Loops on the Loose
🧠 Logic & Control
🎲 Wildcard Questions
100

What does print("Hello") do?

It shows the word Hello on the screen.

100

What type is "apple" in Python?

String

100

What loop is used to repeat something a set number of times?

for loop

100

What comes after if to check another condition?

elif

100

What numbers are used in binary code?

0 and 1

200

How do you print your name and age in one line?

Using commas or an f-string: print("I am", name, "and", age, "years old")

200

What data type is 5.0

Float

200

What does this print?

for i in range(3):
    print("Jump")


Jump

Jump

Jump

200

What keyword do we use to define a function?

def

200

What symbol starts a comment in Python?

#

300

What does this print? print("5","5")

It prints -> 5 5

300

What value type is used for True/False?

Boolean (bool)

300

What does a while loop do?

Repeats as long as a condition is true.

300

#Fix error

def say_hello

    print("Hello")

def say_hello()

300

What’s one big difference between a set and a list?


Sets don’t allow duplicates and are unordered.

400

What does print("Hi", end="!") do?

It prints “Hi!” with no newline.

400

Which of these is a valid variable name: 2cool , my_age, @home, _hell , if , hey1

my_age , _hell , and hey1

400

What is wrong with this loop?

while 5 < 10:
    print("Hello")


It never stops (infinite loop)

400

age = 6

if age > 10:

    print("Old")

else:

    print("Tiny")

Tiny

400

ab = {1,7,5,7,7,8,3}

print(ab)

{1,7,5,8,3}

500

Fix the error: print("I am" + 10)

You need to convert the number: print("I am " + "10")

500

How do you obtain a float input from the user?

float(input("...")) or 

float(input())

500

Write a program to print numbers from 10 to 1 using loops.

Answer with for or while loop
500

for num in range(1, 6):

    if num >= 4:

        print(num)

4

5

500

Fix the code

name = input("What is your name?")

print("Hello, name")

print("Hello", name)