Basics Of python part 1๐ง
๐ ️ Setting Up Python Install Python : Download from: https://www.python.org/downloads/ Ensure Add Python to PATH is selected during installation. Check Installation : bash python --version Run Python : Use an IDE (VS Code, PyCharm, etc.) Or run code via terminal/command line: bash python ๐ง Basic Concepts 1. Hello World print ( "Hello, World!" ) 2. Variables name = "Alice" age = 25 pi = 3.14 3. Data Types int , float , str , bool , list , tuple , dict , set , None a = 10 # int b = 3.14 # float c = "Python" # str d = True # bool 4. Type Checking print ( type (a)) # <class 'int'> ๐ Control Structures 1. If/Else x = 5 if x > 0 : print ( "Positive" ) elif x == 0 : print ( "Zero" ) else : print ( "Negative" ) 2. Loops For Loop: for i in range ( 5 ): print (i) While Loop: count = 0 while count < 5 : ...