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

PDF
Introduction to python
PPT
python-ppt.ppt
PPT
python-ppt.ppt
PDF
Python_slides.pdf
PPTX
python presntation 2.pptx
PPT
Python Programming1.ppt
PPTX
python intro and installation.pptx
PDF
Unit 1-Part-1-Introduction to Python.pdf
Introduction to python
python-ppt.ppt
python-ppt.ppt
Python_slides.pdf
python presntation 2.pptx
Python Programming1.ppt
python intro and installation.pptx
Unit 1-Part-1-Introduction to Python.pdf

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

PDF
Python and Pytorch tutorial and walkthrough
KEY
Programming with Python: Week 1
PPT
1B-Introduction_to_python.ppt
PPTX
Python_Introduction_Good_PPT.pptx
PPTX
Python programming language introduction unit
PPTX
Introduction to Python Programming
PDF
Python 3.5: An agile, general-purpose development language.
PPTX
Python PPT by Sushil Sir.pptx
PPT
Introduction to python
PPTX
MODULE 1.pptx
PDF
05 python.pdf
PPTX
Python Introduction
PPTX
ITC 110 Week 10 Introdution to Python .pptx
PDF
Software Quality Assurance Tooling - Wintersession 2024
PDF
Python tutorial
PPTX
Hello World! with Python
PPTX
Python tutorial for beginners - Tib academy
ODP
Intro To Linux
PDF
python-160403194316.pdf
PDF
Python Book/Notes For Python Book/Notes For S.Y.B.Sc. I.T.
Python and Pytorch tutorial and walkthrough
Programming with Python: Week 1
1B-Introduction_to_python.ppt
Python_Introduction_Good_PPT.pptx
Python programming language introduction unit
Introduction to Python Programming
Python 3.5: An agile, general-purpose development language.
Python PPT by Sushil Sir.pptx
Introduction to python
MODULE 1.pptx
05 python.pdf
Python Introduction
ITC 110 Week 10 Introdution to Python .pptx
Software Quality Assurance Tooling - Wintersession 2024
Python tutorial
Hello World! with Python
Python tutorial for beginners - Tib academy
Intro To Linux
python-160403194316.pdf
Python Book/Notes For Python Book/Notes For S.Y.B.Sc. I.T.
Ad

Recently uploaded (20)

PDF
Zenith AI: Advanced Artificial Intelligence
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Mushroom cultivation and it's methods.pdf
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PPTX
Chapter 5: Probability Theory and Statistics
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PPTX
OMC Textile Division Presentation 2021.pptx
PPTX
TLE Review Electricity (Electricity).pptx
PPTX
A Presentation on Artificial Intelligence
PDF
Encapsulation theory and applications.pdf
PDF
Hybrid model detection and classification of lung cancer
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
A comparative study of natural language inference in Swahili using monolingua...
PDF
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
PDF
Hindi spoken digit analysis for native and non-native speakers
PDF
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
Zenith AI: Advanced Artificial Intelligence
Unlocking AI with Model Context Protocol (MCP)
Mushroom cultivation and it's methods.pdf
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Chapter 5: Probability Theory and Statistics
Building Integrated photovoltaic BIPV_UPV.pdf
Agricultural_Statistics_at_a_Glance_2022_0.pdf
MIND Revenue Release Quarter 2 2025 Press Release
OMC Textile Division Presentation 2021.pptx
TLE Review Electricity (Electricity).pptx
A Presentation on Artificial Intelligence
Encapsulation theory and applications.pdf
Hybrid model detection and classification of lung cancer
Assigned Numbers - 2025 - Bluetooth® Document
gpt5_lecture_notes_comprehensive_20250812015547.pdf
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
A comparative study of natural language inference in Swahili using monolingua...
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
Hindi spoken digit analysis for native and non-native speakers
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
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