Advertisement
Guest User

Untitled

a guest
Sep 19th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. import sys
  2.  
  3. f = open('datafile.txt','w')
  4.  
  5.  
  6. while 1==1:
  7. style = input("Style( 0 Fancy, 1 Casual, 2 Sportswear):")
  8. if style == -1:
  9. break
  10. type = input("Type:(0 Top, 1 Bottom, 2 Shoes, 3 OverTop, 4 Dress):")
  11. name = input("Item name: ")
  12. color = input("Color: ")
  13. brand = input("Brand: ")
  14. f.write('0' + ',' + style + ',' + type + ',' + name + ',' + color + ',' + brand + '\n')
  15.  
  16. f.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement