How many lines does the following snippet output?

How many lines does the following snippet output?

A . three
B . one
C . two
D . four

Answer: B

Subscribe
Notify of
guest
1 Comment
Inline Feedbacks
View all comments
neon
neon
2 days ago

Incorrect answer. Right answer is 3 stars.
 cat exam6.py
for i in range(1,3):
  print(“*”,end=””)
else:
  print(“*”)
neon@LAPTOP-UBB7P203:~$ python3 exam6.py
***