Python Forum
Homework Assignment Help
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Homework Assignment Help
#1
def main() :
    xx = int(input("Person's Age?"))
    if xx > 65:
        print('Senior, Rate: 2.0')
    elif xx <=65 && xx >18:
        print('Adult, Rate: 1.7')
    elif xx <=18 && xx > 12:
        print('Teen, Rate: 1.5')
    else:
        print('Child, Rate: 1.0')
Reply
#2
In Python use and(literally spelled) instead of &&.
Beside that, open a new thread when you have a question, and describe the problem and errors you get.
Reply
#3
mistakenly started this thread.

request moderator/admin to please close it.
Reply
#4
Have you found a solution to the problem?
Do you have a different question? In that case feel free to start a new thread.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  I am completely lost on this homework assignment a36 1 1,723 Feb-21-2022, 06:01 AM
Last Post: buran
  saving issue on homework assignment russoj5 2 1,945 Oct-26-2020, 01:53 PM
Last Post: russoj5
  Help with homework assignment grayarea3 1 2,850 Feb-20-2019, 10:10 PM
Last Post: ichabod801
  Homework Assignment Help sphedicl 3 3,260 Jun-08-2018, 12:26 PM
Last Post: pinku018

Forum Jump:

User Panel Messages

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