Hey.
Just posting this as a "please don't remove my account" kinda thing.
I've been using Python for some time, but I consider myself as a beginner. I've written a couple of GUI (Tkinter) apps as well as some shell / CLI based ones and want to improve my coding skills.
Moved here from a 'not so friendly' Forum, so I hope that I'll get a better reception here.
Have a good day you all.
edit: just to test for posting some code...
Just posting this as a "please don't remove my account" kinda thing.
I've been using Python for some time, but I consider myself as a beginner. I've written a couple of GUI (Tkinter) apps as well as some shell / CLI based ones and want to improve my coding skills.
Moved here from a 'not so friendly' Forum, so I hope that I'll get a better reception here.
Have a good day you all.
edit: just to test for posting some code...
print("A simple vending machine\n") coffee = 10 tea = 10 while tea > 0 or coffee > 0: print("Remaining Tea:",tea) print("Remaining Coffee:",coffee) print("\nWhat would you like?\n(1) Tea\n(2) Coffee") selection = input("> ") if selection == '1': if tea > 0: print("\nHere is your Tea\n") tea -= 1 else: print("\nI'm sorry, but we're all out of Tea\n") elif selection == '2': if coffee > 0: print("\nHere is your Coffee\n") coffee -= 1 else: print("\nI'm sorry, but we're all out of Coffee\n") else: print("Remaining Tea:",tea) print("Remaining Coffee:",coffee) print("Sold out")
Error:none that I know of
Sig:
>>> import this
The UNIX philosophy: "Do one thing, and do it well."
"The danger of computers becoming like humans is not as great as the danger of humans becoming like computers." :~ Konrad Zuse
"Everything should be made as simple as possible, but not simpler." :~ Albert Einstein
>>> import this
The UNIX philosophy: "Do one thing, and do it well."
"The danger of computers becoming like humans is not as great as the danger of humans becoming like computers." :~ Konrad Zuse
"Everything should be made as simple as possible, but not simpler." :~ Albert Einstein