+ 1

Lesson 16.2 Practice

I'm stuck at this. I'm in Python for beginners. Lesson 16 has a practice section - Test Case 1 and 2. 1 requires and output of ***python is awesome*** and 2 requires ***hello**". The problem is that I can only pass one or the other, preventing me from continuing on to the next lesson. If there is something that tells me how to pass them simultaneously, I missed it as the instruction is unclear to me, and for some reason, I can't ask mods and helpers for any help.

2nd Nov 2021, 11:30 AM
Quientin Fuller
Quientin Fuller - avatar
4 odpowiedzi
+ 3
Sololearn Carry's out sample inputs to check if your program is correct. That's why I see different values when doing code coach problems The question is asking for input. Then print the input() with the required stars at the end and the beginning. x = input() print(f"***{x}***")
2nd Nov 2021, 11:40 AM
MATOVU CALEB
MATOVU CALEB - avatar
+ 3
Usually for helping will be needed you attempt. The best when you save your caode on playground and link here. Hint to the task called string „concatenation“
2nd Nov 2021, 11:44 AM
JaScript
JaScript - avatar
+ 2
Qynn your code is wrong. Do not put those extra strings that were not asked for. The question is asking you for a single input and three stars at the beginning and at the end. Just Go back to the previous lessons and read them again. And read the questions with care. Just go back and revise through EDIT: GO back to first lesson of python for beginners course and read through. And Sololearn will carry out it's sample input's the sample inputs you see. are to check if the program is alright, they are not required in your code
2nd Nov 2021, 2:00 PM
MATOVU CALEB
MATOVU CALEB - avatar
+ 1
Would it be: name = input() print("*** hello ***" {x} "*** python is awesome***")
2nd Nov 2021, 1:53 PM
Quientin Fuller
Quientin Fuller - avatar