Font size
WorksheetsPython!
Total questions: 11
Worksheet time: 3mins
How do you ask a person what their understanding is in Python?
print()
what()
input
input()
Which of the following is used to create a function in Python?
def
function
create
func
How do you start a comment in Python?
//
/*
#
--
Which of the following is a correct variable name in Python?
1variable
variable_1
variable-1
variable.1
Which of the following is used to import a module in Python?
import
include
require
load
How do you create a list in Python?
[]
{}
()
<>
Which of the following is used to handle exceptions in Python?
try
catch
handle
except
How do you assing a variable in Python?
(a)
Which of the following is used to create a dictionary in Python?
[]
{}
()
<>
How do you create a tuple in Python?
[]
{}
()
<>
Which of the following is used to check if a key exists in a dictionary in Python?
in
exists
has_key
contains
