0
Practice 14.3
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 *** The word hello is always included in my input even though it is not even typed in why is this and how can I solve this. It is displaying correct line of code except for the word hello
6 Respostas
+ 2
Brian42 replace the word this is awesome with user input
It will look like this
#code starts here
text = input()
print('*'*3,text,'*'*3)
+ 1
show what you tried
and specify the language
+ 1
Brian Lockwood
I did it using Python
#code starts here
word = input()
print('*'*3,word,'*'*3)
0
Using python
text = input()
print("***\tthis is awesome ***")
0
My answer is *** this is awesome *** however at the results page the input states hello and the expected output says *** hello ***
0
correct answer:
text = input()
print( "***" + " " + text + " " + "***" )