Python Forum
Trying to get an if..elif..else statement to run.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Trying to get an if..elif..else statement to run.
#2
You're using comparison operators (==) for your assignments. Use one equals (=) to assign a value.

When working with money, it is often best to doing everything in cents using integer values. That way you avoid any screwiness with floating point values.

Note that '1' is equivalent to str(1), easier to type, and probably more efficient.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Messages In This Thread
RE: Trying to get an if..elif..else statement to run. - by ichabod801 - Jul-28-2019, 03:24 PM

Forum Jump:

User Panel Messages

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