Already learnt some Python? Want to skip ahead?
Take this skill assessment and see which level of the course you should start at.
Complete beginner?
Skip this quiz and start at the next lesson.
Make sure you don't skip any lessons.
Tip: Use another display to watch the videos and code along with me on your computer.
What's the output for the following code?
print(len("95637+12"))
8
You got it! Proceed to the next question.
Read the code below, what will be printed in the output?
score = 67
if score < 80 and score > 70:
print("A")
elif score < 90 or score > 80:
print("B")
elif score > 60:
print("C")
else:
print("D")B
You got it! Continue to the next question.
What will be printed in the console?
def a_function(a_parameter):
a_variable = 15
return a_parameter
a_function(10)
print(a_variable)NameError
You got it! You can continue to the next question.
What will be printed as the output?
def outer_function(a, b):
def inner_function(c, d):
return c + d
return inner_function(a, b)
result = outer_function(5, 10)
print(result)15
You got it! You can continue to the next question.
Given a Car Class has the following attributes and methods, which line of code in the answers will produce an error?
Attributes:
num_of_seats
speed
Methods:
drive()
break()
car.break = 0
You got it! You can continue to the next question.
my_toyota = Car() my_fiat = Car()
What word would you use to describe my_toyota and my_fiat?
Object
You got it! You can continue to the next question.
If you are writing code inside the main.py file to open the quiz.txt what would be the relative file path?

"quiz.txt"
You got it! You can continue to the next question.
What is the output of this code?
def foo(a, b=4, c=6):
print(a, b, c)
foo(20, c=12)20, 4, 12
You got it! You can continue to the next question.
def all_aboard(a, *args, **kw):
print(a, args, kw)
all_aboard(4, 7, 3, 0, x=10, y=64)What is the output of the code above?
4 (7, 3, 0) {'x': 10, 'y': 64}
You got it! You can continue to the next question.
What's the print output for the following code? You do not need a computer to calculate this.
numbers = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55] result = [num + 3 for num in numbers if num % 2 == 0] print(result)
[5, 11, 37]
You got it! If you wish, you can start at Day 32 Intermediate+. Be ware that you would miss lessons on game development with Python Turtle and GUI desktop app development with Tkinter if you chose to skip.