Conditionals and Controll Flow Flashcards
How else if statement is composed in Python
if answer == “left” or answer == “l”:
print “This is the “
elif answer == “right” or answer == “r”:
print “Of course this is the Argument Room,”
else:
print “You didn’t pick left or right! Try again.”
How Python comparators look like
==, !=, , =
How power (2^2) is signed in Python.
22 and Python can eaven do that with fractions 160.5
What is an outcome of doing 3>5. What is a type of that expresion
False (bool)
How single line comment look like in Python
#Comment print "Not a comment"
How multiple line comment look like in Python
””” This is a Comment
print “This is also” “””
What are boolean operators, and how do they look like
and, or, not
Exaclty: and, or, not
How boolean constants should be properly written in Python
True, False
Can you double negation?
not not Ture - yes, you can
What is an order of evaluation of boolean operators.
not, and, or or (to separate)
Can you mix boolean expresions?
# Make me false bool_one = (2
How if statement is construct in Python. Explicitly, say what comes after single character
# if, condition without () and semicolon if some condition:
Do Python need ->;
No, too cool for that :)
How else if is written in python
elif expression:
How Python separates blocks.
How it is called
INDENTIONS
Thats how