Python Forum
My first go at Python hasn't gone well
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
My first go at Python hasn't gone well
#3
input() returns a string, and your correct variable is a number, so they can't be equal. You have to use convert the user input to a number (possibly using int()).
Unless noted otherwise, code in my posts should be understood as "coding suggestions", and its use may require more neurones than the two necessary for Ctrl-C/Ctrl-V.
Your one-stop place for all your GIMP needs: gimp-forum.net
Reply


Messages In This Thread
RE: My first go at Python hasn't gone well - by Ofnuts - Dec-01-2016, 11:16 PM

Forum Jump:

User Panel Messages

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