Learn Python

Python Decision Making

Decision-making is the way where a program shift execution from one side to another based on a condition if the condition evaluates to True then the next statement(s) will be executed other wise if there is any else  statement its block(or body) will be executed instead.   True vs False vs not True All non 'None' values, not empty string, non-zero numbers, whitspace-only strings, and not False values are True False All None, empty string, False values are conside...

Python Loops

Loops allow you to execute a statement or group of statements repeatedly. Loop Architecture Python programming language has two typed of loop while loop Repeats a statement or group of statements while a given condition is True . It tests the condition before executing the loop body. for loop Executes a sequence of statements multiple times and abbreviates the code that manages the loop variable.   Loop Control The Loop control statements change the execution from its ...