Introduction to Python
1. What is Python?
Python is a high-level, interpreted programming language
used to write instructions for computers.
It was created by Guido van Rossum (1991).
2. Why Python is Popular?
Simple and easy to learn
Uses English-like commands
Less coding compared to other languages
Used in AI, games, websites, robotics
3. Features of Python:
✔ Easy syntax
✔ Interpreted language (runs line by line)
✔ Free and open source
✔ Cross-platform (Windows, Linux, Mac)
✔ Supports multiple programming styles.
4. How to Run Python?
Python IDLE
Command Prompt / Terminal
Online compilers
Basic Syntax of Python:
print("Hello World")
Output: Hello World
Important Points:
Python is case-sensitive
Indentation (spaces) is important
No semicolon needed
[Link] is a Variable?
A variable is a container to store data.
Name = “Jyoti”
Age = 14
Rules for Naming Variables
Must start with a letter or underscore
Cannot start with a number
No spaces allowed
Use meaningful names
Data Types
Typ Exampl
Description
e e
Whole
int 10
number
Decimal
float 10.5
number
str Text "Hello"
bool True/False True
Example:
X = 10
Y = 10.5
Name = “Python”
Is_true = True
Input and Output:
Input from User:
name = input("Enter your name: ")
print(name)