Python Forum
Please help. Simple homework
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Please help. Simple homework
#1
Exercise 1:

What’s wrong with this code?

The following code should read an integer into the variable rating:

rating = input ('Enter an integer rating between 1 and 10')


Exercise 2:

Replace *** in the following code with a statement that will print the message 'Congratulations! Your grade of 91 earns you an A in this course'.

Your statement should print the value stored in the variable grade:

grade = 91

if grade >= 90:

***

Edit: I know this is day one stuff. I've tried figuring it out, but the phrasing is ambiguous to me. It's an online course, and the professor is very unhelpful. I'm not just looking for answers, but would appreciate an explanation so I can actually learn it. Thanks!
Reply


Messages In This Thread
Please help. Simple homework - by Asm0deus314 - Feb-02-2020, 05:12 PM
RE: Please help. Simple homework - by michael1789 - Feb-02-2020, 06:17 PM
RE: Please help. Simple homework - by Asm0deus314 - Feb-02-2020, 06:29 PM
RE: Please help. Simple homework - by michael1789 - Feb-02-2020, 07:03 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Where can I get loooads of simple homework questions for kids? omar 1 1,012 Nov-09-2022, 02:33 PM
Last Post: Larz60+
  [TkInter]Simple Python Homework zaji_123 4 4,124 Jan-01-2021, 07:09 PM
Last Post: EliesBe
  i've got these very simple homework HakolYahol 7 5,566 Aug-12-2018, 10:18 AM
Last Post: HakolYahol
  Homework Help - Simple Grading System Segovia 7 7,869 Jul-24-2018, 10:55 PM
Last Post: Segovia

Forum Jump:

User Panel Messages

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