Q1. Write the output of the following code :
for i in range(5):
print(i)
Q2. Write the output of the following code :
for i in (1,2,3):
print(i)
Q3. Write the output of the following code :
for i in (2,3,4):
print("i")
Q4. Write the output of the following code :
for i in (4,3,2,1,0):
print(i, end=" ")
Q5. Write the output of the following code :
for i in range(10):
if(i%2!=0):
print("Hello",i)
Q6. Write the output of the following code :
for i in range(10,2,-2):
print(i, "Hello")
Q7. Write the output of the following code :
str = "Python Output based Questions"
word=str.split()
for i in word:
print(i)
Q8. Write the output of the following code :
for i in range(7,10):
print("Python Output based Questions")
print("Python Output based Questions")
Q9. Write the output of the following code :
for i in range(7,-2,-9):
for j in range(i):
print(j)
Q10. Write the output of the following code :
i="9"
for k in i:
print(k)