Preskoči na glavni sadržaj
Prijava
Sign up for FREE
arrow_back
Biblioteka

if condition

star
star
star
star
star
Posljednje ažuriranje over 5 years ago
10
0
0
0
1
1
1
1
1
1
1
Pitanje 1
1.

Enter your name

Pitanje 2
2.

Enter your class

Pitanje 3
3.

Enter your section

Pitanje 4
4.

In Python, a decision can be made by using if else statement.

Pitanje 5
5.

checking multiple condition in python requires if elif

Pitanje 6
6.

The if statement in python is

Pitanje 7
7.

The code inside the if statement is executed once

Pitanje 8
8.

What does the following code print to the console?

if 5 > 10:

print("fan")

elif 8 != 9:

print("glass")

else:

print("cream")

Pitanje 9
9.

What does the following code print to the console?

if True:

print(“101”)

else:

print(“202”)

Pitanje 10
10.

What does the following Python program display?

x = 3

if ( x == 0 ):

print "Am I here?"

elif ( x == 3 ):

print "Or here?",

print "Or over here?"