Python Forum
help! if statement not working
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
help! if statement not working
#3
Some testing is in order when it doesn't work. This is enough to reveal the first mistake in your code. And I would suggest that you go through a tutorial as it wastes everyone's time to ask a question that is answered in most every tutorial https://wiki.python.org/moin/BeginnersGuide/Programmers
name = raw_input("Enter your name:")

health = raw_input("Enter your standardised health score:")

grade = raw_input("Enter your standardised grade:")

economic = raw_input("Enter your standardised economic output score:")

if grade == "A":
    print "grade ==A OK":
if economic >85:
    print "economic > 85"  
Reply


Messages In This Thread
help! if statement not working - by molliemae - Apr-26-2018, 09:50 PM
RE: help! if statement not working - by j.crater - Apr-26-2018, 10:29 PM
RE: help! if statement not working - by woooee - Apr-26-2018, 11:13 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  if statement not working g0g0g1g 2 1,702 Sep-08-2020, 05:40 PM
Last Post: nilamo
  Else Statement Not Working SenkouSimmer 4 3,375 Jul-22-2019, 11:42 AM
Last Post: jefsummers
  Simple IF statement not working as intended gortexxx 2 2,856 May-17-2018, 07:54 PM
Last Post: gortexxx

Forum Jump:

User Panel Messages

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