Which of the following is a valid Python variable name?
a) 2name b) student_name c) first-name
Why is my variable = 10 invalid in Python?
What is the difference between Age and age as variable names?
Identify the data type of: {"a", "b", "c"}
What will type(3.0) return?
Convert the number 7 into a string.
Write a Python statement to take a user’s age as an integer input.
What data type is returned by input() by default?
Which operator checks identity between two variables?
What is the output of: 5 == "5" and why?
What does the operator in do in Python?
Write a simple if-statement that prints "Adult" if age ≥ 18.
What is the purpose of the else block?
What is the difference between break and continue?
What does the following loop print?
for i in range(5):
if i == 2:
continue
print(i)
What is the main difference between a list and a tuple?
Which collection does not allow duplicate values?
How do you access the value associated with key "age" in:
student = {"name": "Sam", "age": 10}
What does the finally block do in a try/except structure?
Write a small snippet that catches a ZeroDivisionError.
We’re always looking for international STEM educators to join our team. If you are interested, please send us a mail and we’ll get back to you!
If you have any questions, kindly send us a mail. Don’t forget to follow and like all our social accounts to get updates on competitions!
