+ 1
Test case #1 & Test case #2
I did the tip calculator project for python beginners I got the answer for test #1 & #2 only problem is I canât get them both at the same time. I tried writing another line a code below but then I get a syntax error. How do I write two different lines on code without getting an error? So I can answer test case #1 & #2 at the same time. Thanks!
1 Answer
+ 3
Hello Rafael
Your code need to work for all cases.
Means, when I would enter 5 or 20 or any number, you need to print the correct output.
How to do this?
Get user input:
n = int(input())
After that calc 20 % of n and print it.