Skip to content

Quiz: Python Basics

1. What is the output of `print(2**3)`?

6
8
9

2. Which keyword is used to define a function in Python?

function
def
define

3. What data type is the result of: `len("hello")`?

str
int
list