Python Forum
Homework Assignment Help - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Homework (https://python-forum.io/forum-9.html)
+--- Thread: Homework Assignment Help (/thread-10830.html)



Homework Assignment Help - pinku018 - Jun-08-2018

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')



RE: [split] Homework Assignment Help - j.crater - Jun-08-2018

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.


RE: [split] Homework Assignment Help - pinku018 - Jun-08-2018

mistakenly started this thread.

request moderator/admin to please close it.


RE: Homework Assignment Help - j.crater - Jun-08-2018

Have you found a solution to the problem?
Do you have a different question? In that case feel free to start a new thread.