- 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.

6th Feb 2021, 3:34 AM
Raul
Raul - avatar
8 Respostas
+ 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 👍
6th Feb 2021, 4:08 AM
Shivani 📚✍
Shivani 📚✍ - avatar
+ 3
have you checked the comments of the lesson before posting in general Q&A Discussions section?
6th Feb 2021, 3:38 AM
visph
visph - avatar
+ 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
17th Feb 2021, 6:24 AM
brandon gonzales
brandon gonzales - avatar
+ 1
so, please provide an accurate description of your problem, or at least the link to the lesson about ^^
6th Feb 2021, 4:01 AM
visph
visph - avatar
0
I checked the comments as suggested but nothing available to help my issue.
6th Feb 2021, 3:59 AM
Raul
Raul - avatar
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.
6th Feb 2021, 4:01 AM
Raul
Raul - avatar
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
9th Mar 2021, 9:59 AM
@Batmanfromgcity
@Batmanfromgcity - avatar
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+'***')
9th Mar 2021, 10:20 AM
visph
visph - avatar