Welcome to Python
Programming
•In this course, you'll learn Python from basics to
advanced topics like OOP, file handling, and more.
• Let's get started!
2.
What is Python?
•Python is a high-level, interpreted programming
language.
• It is widely used in web development, data science,
AI, automation, and more.
3.
Why Learn Python?
•- Easy to read and write
• - Large community and library support
• - Used by companies like Google, Netflix, and NASA
4.
Installing Python
• Downloadfrom: https://python.org
• Use IDEs like VS Code, PyCharm, or Jupyter
Notebook for writing Python code.
5.
Hello World Program
•Code:
• print('Hello, World!')
• This prints 'Hello, World!' to the screen.
6.
Variables in Python
•Variables are used to store data.
• Example:
• x = 10
• y = 'Hello'
• print(x, y)
7.
Data Types
• Commondata types:
• - int
• - float
• - str
• - bool
• - list
• - tuple
• - dict
8.
Type Conversion
• Usefunctions like int(), str(), float(), list() to convert
between types.
9.
Input and Output
•Getting input:
• name = input('Enter your name: ')
• print('Hello', name)