Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
error mod = num % 2
#3
The input function returns a string. You need to convert it to an integer with int().

Edit: what buran said.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Messages In This Thread
error mod = num % 2 - by achondrite - Jan-30-2019, 08:15 PM
RE: error mod = num % 2 - by buran - Jan-30-2019, 08:22 PM
RE: error mod = num % 2 - by ichabod801 - Jan-30-2019, 08:23 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020