DEV Community

Aruna Arun
Aruna Arun

Posted on

DAY 1 – Introduction to Python

1.What is Python?
Python is a high-level, easy-to-learn, powerful programming language used for:
Web development
Data Science
Machine Learning
Automation
AI
App development

2.Why Python? (Advantages)
Very easy syntax
Huge community support
Works on any OS
Many built-in libraries
Used in top tech companies

Comments in Python
Single-line:
# comment
Multi-line:
'''
This is
a multi-line comment
'''
Keywords
if, else, for, while, break, continue, return, import, class, try, except, True, False, None

*First Python Program
print("Hello, Python!")
Output;Hello, Python!

2.arithmetic Operators
print(10 + 5)
print(10 - 3)
print(4 * 2)
print(20 / 5)
Output:
15
7
8
4

Data Types in Python
1.Integer
2.String
3.Boolean
4.List
5.Tuples
6.set
7.Dictionary
8.Float

Top comments (0)