0

How to make a invoice program for unlimited number of items in python

15th Aug 2019, 12:26 PM
Tirth Anand
11 Réponses
0
have tried to write something yet?
15th Aug 2019, 12:49 PM
Brave Tea
Brave Tea - avatar
0
It's easy to make a program to input one item from the user and put in the invoice
15th Aug 2019, 5:12 PM
Tirth Anand
0
For multiple items, iam sure u can't put it in a loop since then u can't retrieve information of each item to print in the invoice
15th Aug 2019, 5:14 PM
Tirth Anand
0
I want the program to take as many items as the user wants and print them all under the invoice in the end
15th Aug 2019, 5:15 PM
Tirth Anand
0
if you are simply workig in SoloLearn you can do as follows: input1 = input() input2 = input() etcetc you can now input multiple things. only need to put each on a new line in the input popupbox. you then only need to write a format for what goes where, but this isnt really efficient. i just read your last message, the method above works for random input that needs to go at the bottom of an invoice. and is really as simple as I wrote above. Because there isn’t any code to go off from, I am spitballing here. you can look into this post as well https://www.sololearn.com/discuss/1916919/?ref=app I am not good with OOP yet, but perhaps thinking that way might help you out lastly if you want a form to be filled out, why not do it in JavaScript?
15th Aug 2019, 5:25 PM
Brave Tea
Brave Tea - avatar
0
But isn't the above program only applicable for limited items... coz I won't know how many the user will enter right
15th Aug 2019, 5:27 PM
Tirth Anand
0
Anyways thanks man
15th Aug 2019, 5:54 PM
Tirth Anand
0
well, yeah somewhat but you could just copy paste it 200 times :)
15th Aug 2019, 6:19 PM
Brave Tea
Brave Tea - avatar
0
there’s bound to be a better way, but i don’t know it yet. mind you, im not that far on yet in programming
15th Aug 2019, 6:20 PM
Brave Tea
Brave Tea - avatar
0
Alright
16th Aug 2019, 2:34 AM
Tirth Anand
0
Thanks
16th Aug 2019, 2:34 AM
Tirth Anand