digits = (1,2,3,4,5,6,7,8,9)      #assigning few numbers to digits

print(digits[0:5])                # the colon indicates to print number in range 5

for i in range(len(digits)):      # for loop to print in range to variable i
  print(digits[0:i])
  
  

for i in range(len(digits)):     # for loop examples
  print(digits[i:i+3])
