-
In python there are no brackets present for writing loops or conditional statment, instead we use indentation to represent the part inside a condition or loop.
-
It will throw an error if proper indentation is not present. or if multiple loops are there withou proper indentation a function can be outside the loop.
-
Python consist of control statements
- continue - this will return the control to the beginning of the loop
- break - this will break the loop and brings control out of the loop.
- pass - it will let the loop continue and do nothing. used mostly in exception handling or running some empty loop.
-
Notifications
You must be signed in to change notification settings - Fork 0
Ankit-Khule/Conditonal-Statements-Looping-Constructs-in-Python
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
if-else, While Loop, for loop and Nested loop of each in Python
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published