0
How to make a invoice program for unlimited number of items in python
11 Respuestas
0
have tried to write something yet?
0
It's easy to make a program to input one item from the user and put in the invoice
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
0
I want the program to take as many items as the user wants and print them all under the invoice in the end
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?
0
But isn't the above program only applicable for limited items... coz I won't know how many the user will enter right
0
Anyways thanks man
0
well, yeah somewhat but you could just copy paste it 200 times :)
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
0
Alright
0
Thanks