BASIC PYTHON
0.1 What is python?
Python is a high-level programming language used to create
software,websites,mobile applications,games,artificial intelligence(Al)systems,and
automation tools.
Example:
Python
print("Hello,World!")
This code displays:
Hello,World!
[Link] Python is popular
Easy to learn and read
Simple and clean syntax
Widely used in Al and Machine Learning
Large community and many learning resources
lmagine a computer is very smart,but it only does exactly what you tell it.
Python is a language you use to "talk"to the computer and give it instructions.
For example,if you write:
Python
print("Hello!")
the computer will show:
Hello!
With Python,you can:
Build websites
Create games
Make apps
Analyze data l
Develop Al tools like ChatGPT
Automate repetitive tasks
[Link] next step is to install Python and write your first program.
Step 1:Install Python
Go to:
[Link]
Download and install the latest version for your computer.
Step 2:Open Python
After installation,open IDLE(comes with Python)or a code editor like:
[Link] ?
Step 3:Write your first program
Python
name =input("What is your name?“)
print("Hello,",name)
Step 4:Run it
The program will ask for your name and then greet you.
What to learn next
Variables (name ="Ayush")
Input and output (input(),print())
f statements(if,else)
Loops (for,while)
Functions
Small projects