Python Forum

Full Version: Coding error.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
Post your code, using BBcode tags.
What you expect are first and second multiplier?
Quote:I am coding exactly as it is coded in the example
It 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.