0
Test # 1, Test # 2
I got the necessary results but won’t past test with this code. Please help notification=input() notification = '*** hello ***' print (notification) notifications = '*** python is awesome ***' print (notifications)
4 odpowiedzi
+ 4
Remove space after print
+ 2
Hi!
I’m not shure what you want to do, but the input has no effect here, as you are assigning another string to the variable ’notification’ you just ’put’ the input in.
0
I did all that i get test # 1 right but text # 2 shows the right answer but prints the first variable and the 2nd all in one it almost looks like it just wants me to print the second variable by itself but i dont know how without getting test # 1 wrong can’t get then both at the same time so it wont give me credit
0
You probably need to take input and wrap it with *, like
*** input ***
So if input is hello it will be
*** hello ***
In your code you print fixed value, and input dont do anything.
If this is what you need, we concate string using + so
notification = "hi"
"*** " + notification + " ***"
output "*** hi ***"
https://www.w3schools.com/JUMP_LINK__&&__python__&&__JUMP_LINK/gloss_python_string_concatenation.asp