in #Python :
bool, or boolean: a type to represent logical values. Can only be True or False (the capitalization is important!).
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) Python
B) Python rocks!
C) Python rocks! Python
D) Pythonrocks! Python
What is the output of the following code?
A) Python
B) Python rocks!
C) Python rocks! Python
D) Pythonrocks! Python
#Python Pop Quiz 🐍❓
What do you use to turn the
A)
@staticmethod
B)
@classmethod
C)
@property
D) None of the above
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')]
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]
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**********
@WearebiTs
What is the output of this crazy code?
A) SyntaxError
B) *******************Python
C) Python*******************
D) *********Python**********