Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Python Basics

Total questions: 6

Worksheet time: 5mins

Name
Class
Date
1.

Print the word "Hello" on python shell.

a)

Print("Hello")

b)

print("Hello")

c)

Print(Hello)

d)

print 'Hello'

2.

Data type of 3 is (a)  

(int, float, bool, str)

3.

Data type of '3' is (a)  

(int, float, bool, str)

4.

Data type of input() is (a)  

(int, float, bool, str)

5.

Data type of True is (a)  

(int, float, bool, str)

6.

If you want to get input x and convert x to real number,

which command will be used?

a)

x = int(input())

b)

x = float(input())

c)

x = input(int)

d)

x = input(float)