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)

1st Feb 2022, 9:51 PM
Rafael
4 Antworten
+ 4
Remove space after print
2nd Feb 2022, 2:05 AM
Abu Habban
Abu Habban - avatar
+ 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.
1st Feb 2022, 9:58 PM
Per Bratthammar
Per Bratthammar - avatar
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
2nd Feb 2022, 2:33 AM
Rafael
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
2nd Feb 2022, 2:39 AM
PanicS
PanicS - avatar