Introduction to Python Programming
• A Beginner-Friendly Programming Language
• Presented by: Dr.V.Sumathi
What is Python?
• • High-level, interpreted language
• • Created by Guido van Rossum (1991)
• • Emphasizes readability and simplicity
Why Learn Python?
• • Easy syntax – beginner-friendly
• • Used in web dev, data science, AI,
automation
• • Huge community and libraries
Features of Python
• • Interpreted & Interactive
• • Dynamically typed
• • Portable and Open Source
• • Object-Oriented and Extensible
Python vs Other Languages
• Python vs C++ vs Java
• Syntax: Simple | Complex | Verbose
• Memory Mngmt: Auto | Manual | Auto
• Use Case: AI, Web | Games | Android
Python Applications
• • Web Development (Django, Flask)
• • Data Science (NumPy, Pandas)
• • AI/ML (TensorFlow, Scikit-learn)
• • Automation/Scripting
• • Game Development
Installing Python
• • Download from python.org
• • Install IDEs: IDLE, PyCharm, VS Code
• • Hello World example: print('Hello World')
Python Syntax Basics
• • Indentation is crucial
• • Case sensitive
• • Comments: # single line, ''' multi-line '''
Variables and Data Types
• name = "Alice" # String
• age = 25 # Integer
• height = 5.4 # Float
• is_student = True # Boolean
Input and Output
• name = input("Enter your name: ")
• print("Hello", name)
Control Structures
• if age >= 18:
• print("Adult")
• else:
• print("Minor")
• for i in range(5):
• print(i)
Functions
• def greet(name):
• print("Hello", name)
• greet("Alice")
Lists and Dictionaries
• fruits = ["apple", "banana", "cherry"]
• info = {"name": "Alice", "age": 25}
Libraries and Modules
• Built-in: math, random, datetime
• External: pandas, matplotlib, requests
• import math
• print(math.sqrt(16))
Conclusion
• • Python is versatile and powerful
• • Ideal for beginners
• • Encouraged to practice and explore further
• • Next steps: Data types, loops, error handling