Python Basics Quiz
120s
Question 1 of 5 Score: 0
1

What is the output of print(type([]))?

[] is a list so type([]) returns <class 'list'>
2

Which keyword defines a function in Python?

The def keyword is used to define functions.
3

What does len('hello') return?

hello has 5 characters so len returns 5.
4

Python is a compiled language.

Python is interpreted not compiled.
5

Which creates a dictionary in Python?

Curly braces with key:value pairs create a dict.
BSTFN
Install BSTFN App
Get the full experience โ€” works offline!
Tap then Add to Home Screen