Advertisements
Advertisements
Question
Predict the output of the following code:
line=[4,9,12,6,20]
for I in line:
for j in range(1,I%5):
print(j,’#’,end=””)
print()
Short Answer
Solution
1 #2 #3#
1 #2 #3 #
1 #
shaalaa.com
Is there an error in this question or solution?