Python Forum

Full Version: Homework Assignment Help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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')
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.
mistakenly started this thread.

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