Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sys
- f = open('datafile.txt','w')
- while 1==1:
- style = input("Style( 0 Fancy, 1 Casual, 2 Sportswear):")
- if style == -1:
- break
- type = input("Type:(0 Top, 1 Bottom, 2 Shoes, 3 OverTop, 4 Dress):")
- name = input("Item name: ")
- color = input("Color: ")
- brand = input("Brand: ")
- f.write('0' + ',' + style + ',' + type + ',' + name + ',' + color + ',' + brand + '\n')
- f.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement