Adaptive Practice

Introduction to Python

10 questions • Earn up to 107 XP • First attempt — go for 100%!

0
XP
0
Correct
x1
Combo
Question 1 of 10 ⏱ 0:30
Easy
Which of the following is the correct way to declare a variable in Python?
Easy
What will be the output of the following code? print(type(3.14))
Medium
Which of the following is NOT a valid Python data type?
Medium
What will be the output of the following code? print('Hello' + 5)
Easy
Which keyword is used to define a function in Python?
Medium
What is the output of the following code snippet? x = [1, 2, 3] print(x * 2)
Medium
Which of the following statements about Python indentation is TRUE?
Hard
What will be the output of the following code? print(bool('False'))
Medium
Which of the following is the correct syntax to import only the sqrt function from the math module?
Hard
What will be the output of the following code? x = 10 if x > 5: print('Greater') else: print('Smaller') else: print('Equal')

Loading...

Hey! 🔥 Your 7-day streak is at risk. Complete one quick quest today?

Streak broken? No worries. Recover with bonus XP by completing a quest now.