0% found this document useful (0 votes)
30 views9 pages

Intro To Python

This document introduces Python, including why it is easy to learn and more concise than other languages like Java. It discusses common applications of Python like machine learning, big data, and game development. It also outlines some popular career opportunities for Python developers. Finally, it covers basic Python concepts like variables, data types, and arithmetic operations.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
30 views9 pages

Intro To Python

This document introduces Python, including why it is easy to learn and more concise than other languages like Java. It discusses common applications of Python like machine learning, big data, and game development. It also outlines some popular career opportunities for Python developers. Finally, it covers basic Python concepts like variables, data types, and arithmetic operations.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 9

INTRO TO PYTHON

Why Python

 Python is an easy to learn, powerful programming language. With Python, it is possible to


create programs with minimal amount of code. Look at the code in Java and Python used for
printing the message "Hello World“

 JAVA :
class Main { public static void main(String[] args) {
System.out.println("Hello World"); }}

 Python:
print("Hello World")
APPLICATIONS OF PYTHON

• Machine Learning (ML)


• Big Data
• Smart Devices/Internet of Things (IoT)
• Cyber Security
• Game Development
• Backend Development, etc.
Career Opportunities

Python developers have plenty of opportunities across the world


• DevOps Engineer
• Software Developer
• Data Analyst
• Data Scientist
• Machine Learning (ML) Engineer
• AI Scientist, etc.
Calculations with python

 Hello World Program in Python :


 print("Hello World!")
 Addition
 Addition is denoted by
 “+”
 sign. It gives the sum of two numbers.

 Subtraction
 Subtraction is denoted by
 “-”
 sign. It gives the difference between two numbers.
 Multiplication
Multiplication is denoted by “*” sign

 Division
 Division is denoted by “/”sign.
Variables and Data Types

Variables : Variables are like containers for storing values. Values in the variables can be
changed.

 Values
 Consider that variables are like containers for storing information. In context of
programming, this information is often referred to as value.

Data Type
In programming languages, every value or data has an associated type to it known as data
type.
Some commonly used data types
• String
• Integer
• Float
• Boolean
 This data type determines how the value or data can be used in the program. For example, mathematical
operations can be done on Integer and Float types of data.
String
 A String is a stream of characters enclosed within quotes. Stream of Characters
• Capital Letters ( A – Z )
• Small Letters ( a – z )
• Digits ( 0 – 9 )
• Special Characters (~ ! @ # $ % ^ . ?,)
• Space
 Integer
All whole numbers (positive, negative and zero) without any fractional part come under Integers.
Float
 Any number with a decimal point
 24.3, 345.210, -321.86

Boolean
 In a general sense, anything that can take one of two possible values is considered a Boolean. Examples
include the data that can take values like
• True or False
• Yes or No
• 0 or 1
• On or Off
 As per the Python Syntax,
 Trueand False are considered as Boolean values. Notice that both start with a capital letter.

You might also like