+ 1

Indentation....

Guys, plz teach me indentation 😭😭 I lost my heart 😭🥲

27th Jul 2024, 1:46 PM
Rouza TN
Rouza TN - avatar
5 Respuestas
+ 6
It's the same principle as TOC 1. If you hear thunder 1.1Close the windows 1.2 if you are outside 1.2.1 find a good place 1.2.2 call your mum get you home 1.3 tell your friends, that garden party won't take place 2. Get music for your party 3....
27th Jul 2024, 2:53 PM
Oma Falk
Oma Falk - avatar
+ 2
I can give you an example seats = 300 While seats > 0 : print("sell ticket") seats = seats - 1 I hope this can help you You need to use space before print
29th Jul 2024, 9:26 AM
Annie
Annie - avatar
27th Jul 2024, 2:52 PM
✧GHOST✧
✧GHOST✧ - avatar
+ 1
Oma Falk so You're referring that's indentation? But i know indentation means space..! Is it wrong?
28th Jul 2024, 3:15 PM
Rouza TN
Rouza TN - avatar
+ 1
Nope,,you are right leave the numbers and u get spaces
28th Jul 2024, 5:30 PM
Oma Falk
Oma Falk - avatar