wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Python basic

Total questions: 15

Worksheet time: 11mins

Name
Class
Date
1.

Output dari:

print(10 + '10')

a)

1010

b)

20

c)

SyntaxError

d)

C

2.

Cara merubah tipe data string menjadi interger

a)

change('10')

b)

int('10')

c)

convert('10')

d)

toInteger('10')

3.
print( 30 * 2 + 10 - (28 // 3) )
a)
61
b)
62
c)
64
d)
66
4.

print('python' == "python")

a)

True

b)

False

5.

print('python' == "PYTHON")

a)

True

b)

False

6.
Menentukan panjang sebuah object
a)
for
b)
in
c)
len
d)
while
7.
Yang merupakan logical operator, KECUALI
a)
if
b)
or
c)
and
d)
nor
8.
a)

None

b)

True

c)

SyntaxError

d)

False

9.
Syntax yang benar adalah
a)

if { x > y }

( print ("hello world")

b)

if [ x > y ]

( print ("hello world")

c)

if x > y: print("hello world")

d)

if x > y print("hello world")

10.
a)

A

b)

B

c)

C

d)

D

11.
a)

A

b)

B

c)

A C

d)

A D

12.
a)

A

b)

AA

c)

AAA

d)

no output

13.
a)

a a

b)

amalia

c)

no output

d)

m l i

14.
a)

50

b)

60

c)

70

d)

100

15.
a)

50

b)

60

c)

70

d)

90