SlideShare a Scribd company logo
Python
Overview
• About the origin of Python, Van Rossum wrote in 1996:
• Over six years ago, in December 1989, I was looking for a
"hobby" programming project that would keep me occupied
during the week around Christmas. My office ... would be
closed, but I had a home computer, and not much else on my
hands. I decided to write an interpreter for the new scripting
language I had been thinking about lately: a descendant of ABC
that would appeal to Unix/C hackers. I chose Python as a
working title for the project, being in a slightly irreverent mood
(and a big fan of Monty Python's Flying Circus).
Created in 1990 by Guido van Rossum
What is Python?
• Clean, clear syntax
• Very few keywords
• Highly portable laptops , radios, watches(able to be carried or
moved easily, (of software, files, etc) able to be transferred
from one type of computer system to another.)
• Runs almost anywhere - high end servers
• server, network computer, computer program, or device that
processes requests from a client On the World Wide Web, for
example, a Web server is a computer that uses the HTTP
Hypertext Transfer Protocol protocol to send Web pages to a
client's computer when the client requests them manage
network resources
Why Use Python?
Computer Languages: Python, Html css javascript
• HTTP (Hypertext Transfer Protocol) gives users a way to interact
with web resources such as HTML files by transmitting
hypertext messages between clients and servers. HTTP clients
generally use Transmission Control Protocol (TCP) connections to
communicate with servers.
Extensible
• Designed to be extensible using C/C++ allowing access to
many external libraries
• Reduce Development Time
• Code is 2-lOx shorter than C, C++, Java
• Improve Program Maintenance
• Code is extremely readable
• Less Training
• Language is very easy to learn
Productivity !
• Code 5-10 times more concise
• Dynamic typing (when the majority of its type
checking is performed at run-time as opposed to
at compile-time. In dynamic typing, types are
associated with values not variables.)
• Much quicker development
• less typing
• Yes, it runs slower
• but development is so much faster!
• Use Python with Java: Jython!
Python VS Java
Python
Basics
• Python modules and programs are differentiated
only by the way they are called
• .py files executed directly are programs (often
referred to as scripts)
• .py files referenced via the import statement are
modules
• The __init__.py files are required to make Python
treat the directories as containing packages;
Python Programs
• Blocks are delimited by indentation(mark the
beginning and end of the embedded block-
structured statements.)
• Colon used to start a block (:)
• Tabs or spaces may be used
• Many hate this when they first see it
• Humans use indentation when reading code to
determine block structure
Python Blocks
• In most of other Languages
if(a>b){//Code to be Executed..!}
• In Python
if a>b:
//First Line of Block
//Second one
//Thrid one
These Code are out of block
Python Block Example
• Functions are defined with def statement:
• Functions are reusable blocks which can be reuse
• Function can be called with different inputs (parameters/arguments) A
parameter is the variable listed inside the parentheses in the function
definition. An argument is the value that are sent to the function when it is
called.
• Functions are not executes until they called
• def myfunction(a,b):
//First Line
//Second Line
• In above example a function is defined named as “myfunction” with two
Parameters.
• Functions can be with or without parameters.
Python Function
Parameters
Function
Computer Languages: Python, Html css javascript
can you find it some errors in this code?
Python 3.10.5 (main, Jul 22 2022, 17:09:35) [GCC 9.4.0] on linuxType "help", "copyright", "credits" or
"license" for more information.>>>
def_functionTraceback (most recent call last): File "<stdin>", line 1, in <module>NameError: name
'def_function' is not defined>>> >>>
def_fname()Traceback (most recent call last): File "<stdin>", line 1, in <module>NameError: name
'def_fname' is not defined>>>
def my_function():... my_variable111=10 File "<stdin>", line 2 my_variable111=10 ^IndentationError:
expected an indented block after function definition on line 1>>>
my_ variable = 10 File "<stdin>", line 1 my_ variable = 10 ^^^^^^^^ SyntaxError: invalid syntax >>>
my_variable= 10 >>> print "all my_function variable!" File "<stdin>", line 1 print "all my_function variable!"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean
print(...)? >>>
print ("all my_function variable!")
all my_function variable!>>>
Correct path
def my_function():
my_variable= 10
print ("all my_function variable!")
Installation of Python
• Open the URL listed blow:
https://www.python.org/downloads/
• Download the Latest version of python for your OS
• Install it on your OS
• It will configure it automatically for your OS
• Visit this URL for more Details
https://www.youtube.com/watch?v=uDbDIhR76H4&ab_chann
el=AmitThinks
• Use IDLE Python Editor for write Python Programs, it
comes with python package and install along with this
package
Hello World ! with Python
• Use Print Command to Print any String on Screen
• Here you succeed to write your first program in python.
More Information Python
• Comes with extensive documentation,
including tutorials and library reference
• Visit www.python.org for more details
More Information on Python
• Comes with extensive documentation,
including tutorials and library
referenc
e
• Also a number of Python books available
• Visit www
.
p y t hon . org for more details
• Can find python tutorial and reference manual

More Related Content

PPTX
Python PPT by Sushil Sir.pptx
PPTX
Python Introduction
PPT
Pythonintroduction
PPTX
Introduction to python
PPTX
ITC 110 Week 10 Introdution to Python .pptx
PPTX
Python for dummies
PDF
PART - 1 Python Introduction- Variables- Data types - Numeric- String- Boole...
PDF
Python Programing Bio computing,basic concepts lab,,
Python PPT by Sushil Sir.pptx
Python Introduction
Pythonintroduction
Introduction to python
ITC 110 Week 10 Introdution to Python .pptx
Python for dummies
PART - 1 Python Introduction- Variables- Data types - Numeric- String- Boole...
Python Programing Bio computing,basic concepts lab,,

Similar to Computer Languages: Python, Html css javascript (20)

PPTX
Introduction-to-Python-Programming1.pptx
PPTX
A Brief Introduction to Python - English
PPTX
Python and You Series
PDF
Py-Slides- easuajsjsjejejjwlqpqpqpp1.pdf
PPT
notwa dfdfvs gf fdgfgh s thgfgh frg reggg
PDF
Python basics_ part1
PPTX
Basic concept of Python.pptx includes design tool, identifier, variables.
PDF
Tutorial on-python-programming
PPTX
modul-python-part1.pptx
PPT
Py-Slides-1.pptPy-Slides-1.pptPy-Slides-1.pptPy-Slides-1.ppt
KEY
Programming with Python: Week 1
PPT
Py-Slides-1.ppt1234444444444444444444444444444444444444444
PPT
program on python what is python where it was started by whom started
PPT
Python Over View (Python for mobile app Devt)1.ppt
PPT
Python slides for the beginners to learn
PDF
Introduction to Python Unit -1 Part .pdf
PPTX
Python Basics by Akanksha Bali
PDF
python-online&offline-training-in-kphb-hyderabad (1) (1).pdf
PPTX
Python Programming 1.pptx
PPT
C463_02_python.ppt
Introduction-to-Python-Programming1.pptx
A Brief Introduction to Python - English
Python and You Series
Py-Slides- easuajsjsjejejjwlqpqpqpp1.pdf
notwa dfdfvs gf fdgfgh s thgfgh frg reggg
Python basics_ part1
Basic concept of Python.pptx includes design tool, identifier, variables.
Tutorial on-python-programming
modul-python-part1.pptx
Py-Slides-1.pptPy-Slides-1.pptPy-Slides-1.pptPy-Slides-1.ppt
Programming with Python: Week 1
Py-Slides-1.ppt1234444444444444444444444444444444444444444
program on python what is python where it was started by whom started
Python Over View (Python for mobile app Devt)1.ppt
Python slides for the beginners to learn
Introduction to Python Unit -1 Part .pdf
Python Basics by Akanksha Bali
python-online&offline-training-in-kphb-hyderabad (1) (1).pdf
Python Programming 1.pptx
C463_02_python.ppt
Ad

Recently uploaded (20)

PDF
Hindi spoken digit analysis for native and non-native speakers
PDF
A novel scalable deep ensemble learning framework for big data classification...
PPTX
TLE Review Electricity (Electricity).pptx
PDF
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
DP Operators-handbook-extract for the Mautical Institute
PDF
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
PDF
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
PDF
A comparative study of natural language inference in Swahili using monolingua...
PDF
Web App vs Mobile App What Should You Build First.pdf
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PDF
August Patch Tuesday
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
1 - Historical Antecedents, Social Consideration.pdf
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPTX
SOPHOS-XG Firewall Administrator PPT.pptx
PDF
Hybrid model detection and classification of lung cancer
PPTX
cloud_computing_Infrastucture_as_cloud_p
Hindi spoken digit analysis for native and non-native speakers
A novel scalable deep ensemble learning framework for big data classification...
TLE Review Electricity (Electricity).pptx
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
MIND Revenue Release Quarter 2 2025 Press Release
DP Operators-handbook-extract for the Mautical Institute
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
A comparative study of natural language inference in Swahili using monolingua...
Web App vs Mobile App What Should You Build First.pdf
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
August Patch Tuesday
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Programs and apps: productivity, graphics, security and other tools
1 - Historical Antecedents, Social Consideration.pdf
Building Integrated photovoltaic BIPV_UPV.pdf
SOPHOS-XG Firewall Administrator PPT.pptx
Hybrid model detection and classification of lung cancer
cloud_computing_Infrastucture_as_cloud_p
Ad

Computer Languages: Python, Html css javascript

  • 2. • About the origin of Python, Van Rossum wrote in 1996: • Over six years ago, in December 1989, I was looking for a "hobby" programming project that would keep me occupied during the week around Christmas. My office ... would be closed, but I had a home computer, and not much else on my hands. I decided to write an interpreter for the new scripting language I had been thinking about lately: a descendant of ABC that would appeal to Unix/C hackers. I chose Python as a working title for the project, being in a slightly irreverent mood (and a big fan of Monty Python's Flying Circus). Created in 1990 by Guido van Rossum What is Python?
  • 3. • Clean, clear syntax • Very few keywords • Highly portable laptops , radios, watches(able to be carried or moved easily, (of software, files, etc) able to be transferred from one type of computer system to another.) • Runs almost anywhere - high end servers • server, network computer, computer program, or device that processes requests from a client On the World Wide Web, for example, a Web server is a computer that uses the HTTP Hypertext Transfer Protocol protocol to send Web pages to a client's computer when the client requests them manage network resources Why Use Python?
  • 5. • HTTP (Hypertext Transfer Protocol) gives users a way to interact with web resources such as HTML files by transmitting hypertext messages between clients and servers. HTTP clients generally use Transmission Control Protocol (TCP) connections to communicate with servers. Extensible • Designed to be extensible using C/C++ allowing access to many external libraries
  • 6. • Reduce Development Time • Code is 2-lOx shorter than C, C++, Java • Improve Program Maintenance • Code is extremely readable • Less Training • Language is very easy to learn Productivity !
  • 7. • Code 5-10 times more concise • Dynamic typing (when the majority of its type checking is performed at run-time as opposed to at compile-time. In dynamic typing, types are associated with values not variables.) • Much quicker development • less typing • Yes, it runs slower • but development is so much faster! • Use Python with Java: Jython! Python VS Java
  • 9. • Python modules and programs are differentiated only by the way they are called • .py files executed directly are programs (often referred to as scripts) • .py files referenced via the import statement are modules • The __init__.py files are required to make Python treat the directories as containing packages; Python Programs
  • 10. • Blocks are delimited by indentation(mark the beginning and end of the embedded block- structured statements.) • Colon used to start a block (:) • Tabs or spaces may be used • Many hate this when they first see it • Humans use indentation when reading code to determine block structure Python Blocks
  • 11. • In most of other Languages if(a>b){//Code to be Executed..!} • In Python if a>b: //First Line of Block //Second one //Thrid one These Code are out of block Python Block Example
  • 12. • Functions are defined with def statement: • Functions are reusable blocks which can be reuse • Function can be called with different inputs (parameters/arguments) A parameter is the variable listed inside the parentheses in the function definition. An argument is the value that are sent to the function when it is called. • Functions are not executes until they called • def myfunction(a,b): //First Line //Second Line • In above example a function is defined named as “myfunction” with two Parameters. • Functions can be with or without parameters. Python Function
  • 15. can you find it some errors in this code? Python 3.10.5 (main, Jul 22 2022, 17:09:35) [GCC 9.4.0] on linuxType "help", "copyright", "credits" or "license" for more information.>>> def_functionTraceback (most recent call last): File "<stdin>", line 1, in <module>NameError: name 'def_function' is not defined>>> >>> def_fname()Traceback (most recent call last): File "<stdin>", line 1, in <module>NameError: name 'def_fname' is not defined>>> def my_function():... my_variable111=10 File "<stdin>", line 2 my_variable111=10 ^IndentationError: expected an indented block after function definition on line 1>>> my_ variable = 10 File "<stdin>", line 1 my_ variable = 10 ^^^^^^^^ SyntaxError: invalid syntax >>> my_variable= 10 >>> print "all my_function variable!" File "<stdin>", line 1 print "all my_function variable!" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)? >>> print ("all my_function variable!") all my_function variable!>>> Correct path def my_function(): my_variable= 10 print ("all my_function variable!")
  • 16. Installation of Python • Open the URL listed blow: https://www.python.org/downloads/ • Download the Latest version of python for your OS • Install it on your OS • It will configure it automatically for your OS • Visit this URL for more Details https://www.youtube.com/watch?v=uDbDIhR76H4&ab_chann el=AmitThinks • Use IDLE Python Editor for write Python Programs, it comes with python package and install along with this package
  • 17. Hello World ! with Python • Use Print Command to Print any String on Screen • Here you succeed to write your first program in python.
  • 18. More Information Python • Comes with extensive documentation, including tutorials and library reference • Visit www.python.org for more details
  • 19. More Information on Python • Comes with extensive documentation, including tutorials and library referenc e • Also a number of Python books available • Visit www . p y t hon . org for more details • Can find python tutorial and reference manual