kkalog

Untitled

Jul 20th, 2017
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.13 KB | None | 0 0
  1. def print_List():
  2.     list1 = list()
  3.     for i in range(1,21):
  4.       list1.append(i**2)
  5.     print list1[0:5]
  6.  
  7. print_List()
Advertisement
Add Comment
Please, Sign In to add comment