daily pastebin goal
39%
SHARE
TWEET

Untitled

a guest Jan 12th, 2018 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class car:
  2.         color =""
  3.         name = ""
  4.  
  5.  
  6. carlist= []
  7.  
  8. for x in range(0, 10):
  9.         car1 =  car()
  10.         car1.color = "red"
  11.         car1.name = x * 3
  12.         carlist.append(car1)
  13.  
  14. for x in range(0, 10):
  15.         carx = carlist[x]
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top