We all are BiTs
471 subscribers
1.24K photos
99 videos
174 files
904 links
all about 0 & 1 : Twitter : @NavidDariya
Download Telegram
in #Python :
bool, or boolean: a type to represent logical values. Can only be True or False (the capitalization is important!).
#Python Pop Quiz 🐍

What is the output of the following code?

A) 5
B) 0
C) 4
D) 3
#Python Pop Quiz 🐍

What is the output of the following code?

A) Python
B) Python rocks!
C) Python rocks! Python
D) Pythonrocks! Python
#Python Pop Quiz 🐍

What is the length that is returned?

A) 0
B) 1
C) 2
D) None of the above
#Python Pop Quiz 🐍

Does the following print True or False?
#Python Pop Quiz 🐍

What do you use to turn the amount() method into an attribute?

A)
@staticmethod

B)
@classmethod

C)
@property

D) None of the above
#Python Pop Quiz 🐍

What does the following code print out?

A) Some kind of exception is raised
B) [(1, 'a'), (2, 'b'), (3, 'c')]
C) [(1, 'a'), (2, 'b'), (3, 'c'), (4, ''), (5, '')]
D) [(1, 'a'), (2, 'b'), (3, 'c'), (4, 'a'), (5, 'b')]
#Python Pop Quiz 🐍

What is the output of the following code?

A) [True, True, True, True]
B) [True, False, False, True]
C) [False, True, False, True]
D) [False, True, True, False]
#Python Pop Quiz 🐍
@WearebiTs
What is the output of this crazy code?

A) SyntaxError
B) *******************Python
C) Python*******************
D) *********Python**********