Can anybody help me with seatbelt exercise in phyton? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can anybody help me with seatbelt exercise in phyton?

19th Sep 2023, 9:09 PM
CRhACKER7
CRhACKER7 - avatar
6 Answers
+ 6
Cary Krasivaya you just finished a module lesson on "for loop" What exactly do you need help with? Remember to indent your print() statement under the loop. The idea is to print the message exactly 3 times.
19th Sep 2023, 10:03 PM
BroFar
BroFar - avatar
+ 5
It works! Thx a lot!
20th Sep 2023, 9:24 PM
CRhACKER7
CRhACKER7 - avatar
+ 4
Hi, Cary Krasivaya ! To better assist you, could you please share what you’ve tried so far or specify the challenges you’re facing? It helps in providing more targeted guidance.
19th Sep 2023, 9:42 PM
Per Bratthammar
Per Bratthammar - avatar
+ 3
Cary Krasivaya you have to display it correctly message = "Fasten your seat belt" In your reference above you have message = "Fasten your seatbelt" The space is missing between seat and belt message = "Fasten your seat belt" for i in range(3): print(message)
20th Sep 2023, 6:34 PM
BroFar
BroFar - avatar
+ 1
I already tried everything for i in range (3): print(message) But it doesn't work
20th Sep 2023, 6:22 PM
CRhACKER7
CRhACKER7 - avatar
0
# message that will be shown message = "Fasten your seatbelt" # Bucle for to show the message 3 times for print
20th Sep 2023, 10:14 AM
CRhACKER7
CRhACKER7 - avatar