Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
19 views

Introduction To Python

The document discusses key concepts of Python programming including its features, applications, and importance. It covers Python's history and how it is a general-purpose, high-level, interpreted programming language. Examples are provided of Python's use in machine learning, data science, web development, and more. Key elements of Python like variables, data types, keywords, statements, and indentation are defined.

Uploaded by

Anas S
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views

Introduction To Python

The document discusses key concepts of Python programming including its features, applications, and importance. It covers Python's history and how it is a general-purpose, high-level, interpreted programming language. Examples are provided of Python's use in machine learning, data science, web development, and more. Key elements of Python like variables, data types, keywords, statements, and indentation are defined.

Uploaded by

Anas S
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 18

Presentation By Uplatz

https://training.uplatz.com
Email: info@uplatz.com
Phone: +44 7836 212635
❖ WHY LEARN PYTHON PROGRAMMING
❖ FEATURES OF PYTHON PROGRAMMING
❖ IMPORTANCE OF PYTHON PROGRAMMING
❖ APPLICATIONS OF PYTHON PROGRAMMING
❖ Python is a general-purpose interpreted, interactive,
object-oriented, and high-level programming language.
❖ It was created by Guido van Rossum during 1985- 1990.
❖ Almost anything can be built using Python
❖ It’s the most common language preferred by machine
learning and data science.
❖ Python jobs are well paying.
❖ Python programming is in high demand and is ever
increasing.
❖ Python is fast.
❖ Python is easy.
❖ Python is used by all the big companies.
❖ Easy to code.
❖ Free and Open Source.
❖ Object-Oriented Language.
❖ GUI Programming Support.
❖ High-Level Language.
❖ Python is Portable language.
❖ Interpreted Language.
❖ Dynamically Typed Language.
❖ Used extensively in machine learning and data science.
❖ Has vast modules and packages for scientific computing.
❖ Greater expansion in future.
❖ Great career and employment opportunities.
❖ Machine Learning and Artificial Intelligence.
❖ Data Science and Data Visualization.
❖ Business Applications.
❖ CAD Applications.
❖ Desktop GUI.
❖ Web Scraping Applications.
❖ Game Development.
❖ Web Development.
Presentation By Uplatz
https://training.uplatz.com
Email: info@uplatz.com
Phone: +44 7836 212635
What can Python do?
❖ Python is a fully-functional programming language that
can do anything almost any other language can do, at
comparable speeds.
❖ Python is a powerful general-purpose programming
language.
❖ Python Keywords and Identifiers.
❖ Python Statement, Indentation and Comments.
❖ Python Variables, Constants.
❖ Data types in Python.
❖ Keywords are the reserved words.
❖ An identifier is a name given to entities like class,
functions, variables, etc. It helps to differentiate one entity
from another.

Ex: a, sum, count, etc.

Valid: identifiers: sum, sum_1, sum1, count, etc.


Invalid: 1sum, True, sum-2, sum$, etc.
Executable instructions are called statements.

Ex: a=1 #is a simple statement


if a<1:
print(‘hi’) #is a condition statement
a = (1 + 2 + 3 +
4+5+6+
7 + 8 + 9)
#Is a multiline statement.
Indentation is a block of code created to perform some
specific operations.
Python uses indentation space to create blocks of code.

Ex: if (a<5):
print(‘the number is less than 5’)
print(‘we cannot go ahead’)
print(‘lets abort the program’)
Comments add description to the program as well as to specific
blocks of code.

In Python, we use the hash (#) symbol to start writing a comment.


#this is a comment demo
a=1 #is a simple statement
if a<1:
print(‘hi’) #is a condition statement
a = (1 + 2 + 3 +
4+5+6+
7 + 8 + 9)
#Is a multiline statement.
A variable is a named location used to store data in the
memory.
number = 10
Variables can change their value during the program.
number = 101

a= 5
b= 3.2
c= "Hello"
A constant is a type of variable whose value cannot be
changed.

PI = 3.14
GRAVITY = 9.8
❖ Identifiers can be a combination of letters in lowercase (a to z)
or uppercase (A to Z) or digits (0 to 9) or an underscore _.
Names like myClass, var_1 and print_this_to_screen, all are
valid example.
❖ An identifier cannot start with a digit. 1variable is invalid, but
variable1 is a valid name.
❖ Keywords cannot be used as identifiers.
global = 1
❖ We cannot use special symbols like !, @, #, $, % etc. in our
identifier.
❖ An identifier can be of any length.

You might also like