Test case #1 & Test case #2 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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!

27th Jan 2022, 8:07 PM
Rafael
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.
27th Jan 2022, 8:16 PM
Denise Roßberg
Denise Roßberg - avatar