In [ ]:
for i in range(1,10):
  print(i, end='')
  print('hi')
print("I am outside the loop")
In [ ]:
for i in range(0,-100,-10):
  print(i)  
print("I am outside the loop")
In [ ]:
for i in range(0,100,10):
  if(i==50):
    continue
  print(i,end='')
  print('Hi')
print("I am outside the loop")
In [ ]:
for i in range(0,100,10):
  if(i==50):
    continue
  print(i,end='')
  print('Hi')
else:  
  print("I am outisde but inside else")
print("I am outside the loop")
In [ ]:
my_list=['One','Two','Three','Four']
for str in my_list:
  print(str)
One
Two
Three
Four
In [ ]:
my_str="abcdefgt"
for str in my_str:
  print(str)
In [ ]:
 for i in range(5):
   for j in range(5):
     print(j,end='')
   print(" inner end" , i)
print("Outside all the loops")
01234 inner end 0
01234 inner end 1
01234 inner end 2
01234 inner end 3
01234 inner end 4
Outside all the loops