Tuesday, December 13, 2016

Python3 - Variable assignment and printing ..

#for i in range(5, 10):
  #print(i)
 
#for y in range(-5,-20,-3):
#  print(y)
a = ["Dog", "cat", "rat", "goat"]
for i in range(len(a)):
  print(i, a[i])
 
 
print(range(10))

No comments:

Post a Comment