Posts

Showing posts from August, 2024

Python Fundamentals

Notes Part-1  ----- >    PYTHON Notes Part-2 ------>  Input and Output Statements Notes Part-3 -------> Operators in python Notes Part-3.2 ----->  Precedence of operators Notes Part-4   ---->  Datatypes in python, Mutable and Immutable Data types Notes Part-4.1 ---->  Debugging, Constants, Indentation ,Structure of Python Notes Part-5  ------>  Conditional Statements Notes Part -6 ------>   Lists Notes Part- 7   -----> Dictionary Reference Notes on For Loop and While Loop to read: 1. For Loop : A for loop is typically used when the number of iterations is known in advance. It is structured for cases where you need to iterate over a range , a sequence, or a collection (like a list or a string). Syntax: for i in range(start, stop, step):     # Loop body Example with a for loop: n = int(input("enter number")) s = 0 for i in range(1, n+1):     s = s + i     ...