INTRO TO PYTHON
Intro to Python (Beginner Guide)
Python is one of the most popular and beginner-friendly programming languages used in web development, data science, AI, and automation.
🧠 Why Learn Python?
✔ Easy to read and write
✔ Huge community support
✔ Used in AI, ML, Web, Cybersecurity
✔ High demand skill
⚙️ Basic Syntax
🖥️ Hello World
print("Hello, World!")
🔢 Variables
name = "John"
age = 25
👉 No need to declare data types explicitly
📊 Data Types
Type Example
String "Hello"
Integer 10
Float 10.5
Boolean True / False
List [1,2,3]
Dictionary {"key": "value"}
🔁 Control Flow
If Statement
if age > 18:
print("Adult")
else:
print("Minor")
Loop (For)
for i in range(5):
print(i)
🧩 Functions
def greet(name):
return "Hello " + name
print(greet("Alex"))
📦 Lists
nums = [1, 2, 3]
nums.append(4)
#Python
#Programming
#Coding
#LearnPython
#Beginner
#SoftwareDevelopment
#TechLearning