whay if i want to write multiple statements in if block.. can u yell iys syntax | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

whay if i want to write multiple statements in if block.. can u yell iys syntax

8th Jul 2017, 5:42 PM
Terminater
Terminater - avatar
5 Answers
+ 5
if condition: aStatement aStatement Python's blocks are based on Indentation.
8th Jul 2017, 5:55 PM
Rrestoring faith
Rrestoring faith - avatar
0
use case switch for multiple conditions
8th Jul 2017, 9:09 PM
Sonu Kumar Singh
Sonu Kumar Singh - avatar
0
@Sonu: I don't think Python supports switch like most, I think you need elifs.
9th Jul 2017, 12:12 AM
Jamie
Jamie - avatar
0
where the identation emds, means if i wish to write several statements
9th Jul 2017, 4:27 AM
Terminater
Terminater - avatar
0
sorry my mistake...
9th Jul 2017, 4:30 AM
Sonu Kumar Singh
Sonu Kumar Singh - avatar