Oct-01-2022, 09:19 AM
Don't be afraid of using descriptive names for your variables and as well as some interface message.
As an example:
What data types have you learned about?
As an example:
user_number = int(input("Enter a integer value (0 to finish)> "))You'll need a way of checking the input, so that you can exit the loop when a zero is entered and a way of storing the inputs.
What data types have you learned about?
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