Answer:
To allow user to assign rating
Explanation:
The basic function of “rate” command is to give opportunity to the user to assign a value to a song from the range of 1 – 5.
In the range, the value of 1 indicates the lowest rating, while value of 5 is the highest rating that can be obtained.
Any previous ratings are then replaced by the new rating assigned from the range of 1 – 5.
You should have the percentage of tip based on the service that you received.
Then you multiply the percentage of tip by the amount of money that you have to pay for what you bought.
It looks like you need to get both numbers from the input. Try doing something like this:
print(int(input()) + int(input()))