π Python Quiz β if / elif / else
What will this print?
x = 15
if x > 20:
print("A")
elif x > 10:
print("B")
else:
print("C")
A) A
B) B
C) C
D) Error
Drop your answer π
#Python#PythonQuiz
π Python Quiz β Control Statements
What will this print?
score = 75
if score >= 90:
print("Excellent")
elif score >= 60:
print("Good")
else:
print("Keep practicing")
A) Excellent
B) Good
C) Keep practicing
D) Error
Drop your answer π
#Python#PythonQuiz
π Python Quiz β Frozenset
What will happen when this code runs?
fruits = frozenset(["apple", "banana", "mango"])
fruits.add("orange")
print(fruits)
A) "orange" is added
B) It prints True
C) Error β
D) Nothing happens
Your answer? π
#Python#PythonQuiz#LearningInPublic
Day 2 β Python
π Day 2: Learning Python data types.
str β "Hello"
int β 25
float β 3.14
bool β True
Small building blocks, but they matter. π
#Python#LearningInPublic#DataScientist