Computer Science, asked by reetaydv143, 8 months ago

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 sambhavgautam6
5

for i in range(6):

print("Hi!")

Answered by 037dhruvvats
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