๐ 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