Advertisement
KodingKid

Developer Notes in Python - Lists and Len

Jul 31st, 2021
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.35 KB | None | 0 0
  1. list1 = [floor, car, fence, door, wall, chair, table, tv, rug, roof] #objects
  2. list2 = [basic, useful, useful, useful, basic, basic, useful, basic, basic] #their use
  3. list3 = [easy, hard, easy, easy, easy, easy, easy, easy, hard, easy] #complexity
  4. print(list1) #list1
  5. print(len(list1)) #how many objects in list one
  6. print(list2) #list2
  7. print(list3) #list3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement