37.0k views
4 votes
Test if a number grade is an F (less than or equal to 65). If so, print "That’s not good.". (Python)

Hint: Grades may be decimals.


Sample Run

Enter a Number: 60


Sample Output

That's not good.

User Viebel
by
3.6k points

2 Answers

4 votes

Answer:

grade = float(input(Enter a number grade: "))

if grade <= 65:

print("That's not good")

Step-by-step explanation:

User Ashiq A N
by
4.1k points
6 votes

Answer:

grade=float(input("Enter a number grade:"))

if grade<=65:

print("That's not good.")

Step-by-step explanation:

I got a 100% on the question. The first answer had a few mistakes in it.

Sincerely,

Dangerous Gem

Test if a number grade is an F (less than or equal to 65). If so, print "That-example-1
User Nouman Zaka
by
3.7k points