![]() |
Coding error. - 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: Coding error. (/thread-40881.html) |
Coding error. - xflyerwdavis - Oct-07-2023 I am using Python programming by John Zelle. I am trying to work on the example on page 12. I am coding exactly as it is coded in the example. I am getting the error message "Can't multiply sequence by non-int of the type float" What do I need to do to correct this? Regards, Butch RE: Coding error. - buran - Oct-07-2023 Post your code, using BBcode tags. What you expect are first and second multiplier? RE: Coding error. - deanhystad - Oct-07-2023 Quote:I am coding exactly as it is coded in the exampleIt is so cute when new programmers say this. You don't know what to look for, of course you cannot see the error you made. Unless you copied the example and pasted it in your file, you made a transcription error. It is nearly impossible not to. Probably an indenting error. Next time, post the entire error message, including the trace. This usually includes enough information to identify and correct the error. |