Self Learn Problems
Q:9. What should come in place of X if we want to
print HI! 6 times?
for i in range(x):
print("HI!")
1. 1,5
Answers
Answered by
5
for i in range(6):
print("Hi!")
Answered by
1
Explanation:
range(1,7)
As we want to print HI! 6 times we should use range(1,7) to get the required result.
Similar questions