Python Class 1
Python Class 1
PYTHON –
JOB READY
PRESENTED BY
CLASS-01
DEVENDER SINGH
HLEI (OPC) PRIVATE LIMITED
1. WEEK
1 Introduction 4 Operators
Assessment- 1
HLEI (OPC) PRIVATE LIMITED
Programming Language
Python Intro
Python is used
• Web frameworks and • Graphic Design
application • Image Processing
• GUI Based desktop Application
application • Games
• Data Science and Data • Scientific/Computational
Visualization Application
• ML AND AI
HLEI (OPC) PRIVATE LIMITED
JAVA: Python:
class HelloWorld { print(“Hello, World!”)
public static void main(String[] args) {
System.out.println("Hello, World!");
}
}
HLEI (OPC) PRIVATE LIMITED
Why Python
• Simple and easy to use.
• Work on different Platforms.
• Use simple syntax like English.
• Fewer Lines of code as compared to other language.
• Interpreted language
• Python can be treated procedurally, in an object-oriented way, and
Functional way.
HLEI (OPC) PRIVATE LIMITED
Python Installation
Https://www.python.org/downloads
HLEI (OPC) PRIVATE LIMITED
print(“Welcome to HLEI”)
First
Python
Program
It is a Function
It is content
HLEI (OPC) PRIVATE LIMITED
Syntax Error
First
Python
Program
Error
HLEI (OPC) PRIVATE LIMITED
Syntax Error
First
Python Python syntax errors happen when the Python interpreter is unable
Program
to recognize the structure of the statement in code.
A syntax error is happening because of missing a comma or a
Error
quotation mark or misspelling a word
HLEI (OPC) PRIVATE LIMITED
How to run
Program
HLEI (OPC) PRIVATE LIMITED
How to run
Program GUI Based
Google
Visual Studio
PyCharm (IDE) Collaboratory
Code (IDE)
HLEI (OPC) PRIVATE LIMITED
Visual Studio
HLEI (OPC) PRIVATE LIMITED
Google
Colaboratory
HLEI (OPC) PRIVATE LIMITED
PyCharm (IDE)
HLEI (OPC) PRIVATE LIMITED
String and
print(“Welcome” + “HLEI”)
number print(“Hello”,8)
Adding print(“hello”,” World”)
Python print(8+9)
Program
HLEI (OPC) PRIVATE LIMITED
Comments
Types of comments
Comment
#print(“hello everyone”)
HLEI (OPC) PRIVATE LIMITED
Escape Sequence
1. \n
2. \t
3. \”
HLEI (OPC) PRIVATE LIMITED
Variables
It is a container in which we can store
any value. • A=5;
We can store short names (a,b,c) • Name= “Devender”
OR • print(a)
• print(Name)
More Description name (name, age,
email)
Rules for python varible
• A variable name must start with a letter or the
underscore character.
• A variable does not start with a number.
• A variable can contain an alphanumeric character
or underscore like (hi_13)
• Variable name is case sensitive.
• A variable name can not be any of the Python key-
word
question