- 2
Python lesson 16.2
Can anybody help me figure out how to do this lesson. I am completely new to programming and I'm having some trouble.
8 Antworten
+ 3
Raul
Read the given description carefully. As you mentioned you need (***) on both side of your text.
Here, for the text you will be taking as input & on both sides you will be adding (***) & by concatenation.
Hope this helps you 👍
+ 3
have you checked the comments of the lesson before posting in general Q&A Discussions section?
+ 2
can't solve the practice for 16.2. for some reason when i do the input it puts both the hello from the input line and the one from the print line
+ 1
so, please provide an accurate description of your problem, or at least the link to the lesson about ^^
0
I checked the comments as suggested but nothing available to help my issue.
0
The lesson asks me to add (***) as an input. However I can't seem to get it on both sides of the word "hello". Any help is appreciated.
0
So, I am also having trouble with this 16.2 beginners python lesson.
I understand that we need to have (***) as an input, but I can only get it on one side.
(ex. of my incorrect solution to the problem 👇)
stars=input(“***”)
print(stars + “hello” + stars)
output: ***hellohellohello
0
you don't have to provide argument to input...
you just have to print input result enclosed by triple asterisk:
inp = input()
print('***'+inp+'***')