Write a program that takes the text as input and outputs it by adding 3 stars at the beginning and the end. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Write a program that takes the text as input and outputs it by adding 3 stars at the beginning and the end.

I always get the first case but the second case keeps showing error, I don't know what to do l, can someone help me please name = (("")) print (("*** hello ***" ) ) age = ("") Print ("*** python is awesome ***")

29th Jun 2021, 2:15 PM
Delight Amadi
Delight Amadi - avatar
6 Answers
29th Jun 2021, 2:47 PM
Nanda Balakrishnan
+ 2
str= input() print("*** " + str + " ***")
16th Nov 2021, 4:35 PM
Mante Joseph
+ 1
Read the task carefully "Write a program that takes the text as input and outputs it by adding 3 stars at the beginning and the end" For example, text = input() print("!"+text+"!")
29th Jun 2021, 2:39 PM
Simba
Simba - avatar
+ 1
Still doesn't work
29th Jun 2021, 2:44 PM
Delight Amadi
Delight Amadi - avatar
0
x = input() y = "***" print(y, x, y)
23rd Dec 2022, 4:05 PM
Vinicios Affonso
Vinicios Affonso - avatar
0
x = input() y = "***" print(y, x, y)
23rd Dec 2022, 4:06 PM
Vinicios Affonso
Vinicios Affonso - avatar