+ 1

14.3 python beginners: How do you satisfy multiple test cases?

I can satisfy test case one OR test case two but not both. And it won’t even let me attempt three or four. Anyone else stuck on this one? Help! https://code.sololearn.com/csdyripXjtny/?ref=app

6th Dec 2021, 12:58 PM
Rick Hudgel
8 Antworten
+ 3
You shouldn't modify the input, but the output. Take the input as is, then work your print statement.
7th Dec 2021, 12:41 AM
Emerson Prado
Emerson Prado - avatar
+ 3
* take input using input() * output the input but put the start around it, use print() for output I think you mix up input and output. Remove the string inside the input function and have a look at print() again!
6th Dec 2021, 1:22 PM
Lisa
Lisa - avatar
+ 1
I don't know the task, but usually you need to take input() and use the input value in the calculations. Can you please link your code and explain what you try to do?
6th Dec 2021, 1:09 PM
Lisa
Lisa - avatar
+ 1
Here is the task: You’re working on a notification system and need to make the notification text eye-catching. Write a program that takes the text as input and outputs it by adding 3 stars at the beginning and the end. Sample Input this is awesome Sample Output *** this is awesome ***
6th Dec 2021, 1:21 PM
Rick Hudgel
+ 1
I told you the steps how to approach the problem. You can review lesson "Taking User input" everything you need will be explained there
6th Dec 2021, 1:35 PM
Lisa
Lisa - avatar
0
I linked the first test case and it works but there are three more test cases that this does not satisfy.
6th Dec 2021, 1:19 PM
Rick Hudgel
0
I really appreciate it but I’m really new and confused. Could you try explaining again?
6th Dec 2021, 1:26 PM
Rick Hudgel
0
Lol. I have. Thanks.
6th Dec 2021, 1:41 PM
Rick Hudgel