Code error from Fundamentals of Python Programming van Richard L. Halterman - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: Code error from Fundamentals of Python Programming van Richard L. Halterman (/thread-40329.html) Pages:
1
2
|
RE: Code error from Fundamentals of Python Programming van Richard L. Halterman - Skaperen - Jul-13-2023 this is what it did for me:
RE: Code error from Fundamentals of Python Programming van Richard L. Halterman - Heidi - Jul-20-2023 Thank you, I did it wrong, now i understand With kind regard Heidi RE: Code error from Fundamentals of Python Programming van Richard L. Halterman - Skaperen - Jul-25-2023 simple explanation for others: if you type just the Return key only, you get an empty string. input() does not get a number from the end of the output. YOUR CODE needs to check for an empty string and substitute the default input, if that is you intention. |