+ 4

How to add names of items into a python code?

in a cashier system,how do we add the names of the items into the python program?

1st Jul 2017, 11:17 AM
Sajani Mayadunne
Sajani Mayadunne - avatar
3 Respuestas
+ 3
I'll try using dictionaries or lists in order to add items
8th Jul 2017, 7:54 AM
Petko Bozhkov
Petko Bozhkov - avatar
+ 2
Assuming there exists a document that the script can reach, and the content can be interpreted by Python: file = open(filename.extension, "r") From there, you'll just loop line by line of the file variable to extract the information.
1st Jul 2017, 11:24 AM
Sapphire
0
@Sajani Mayadunne - You are the only Female in the Top 10 of this month😁👏👏👏👏 well Done
2nd Jul 2017, 10:43 AM
Elias kekana
Elias kekana - avatar