wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

python

Total questions: 3

Worksheet time: 2mins

Name
Class
Date
1.

What command is used to get input from a user in Python?
           

a)

scanInput()

b)

enter()

c)

input()

d)

readLine()

2.

How can you make a program display text on the screen?
           

a)

write()

b)

print()   

c)

echo()

d)

say()

3.

How do you store numeric input from a user?
         

a)

Wrap input in str()    

b)

Convert input to int or float 

c)

Save input in a text file

d)

Use a random() function