+ 2
16.2 practice
Not sure why my code isn’t working. Tried a few different ways. Any suggestions? inp = input() print('***' + inp + '***')
5 Respostas
+ 7
You missing 2 spaces around inp .
print("*** " + inp + " ***")
+ 4
we don't need to take care about spaces. it can be done like:
print("***", inp, "***")
0
Thank you Sayed! All worked out with the spaces
0
Right code is
text = input()
output = "*** " + text + " ***"
print(output)
0
This definitely works