SlideShare a Scribd company logo
1 of 25
 What is Python?
 Features of Python
 What we can do with Python?
 Companies using python today
 Installing Python
 Python as a Calculator/Arithmetic Expression
 Python is a VHLL (Very High Level Language).
 VHLL is designed to reduce the complexity
and to reduce amount of source code
required to create a program
 Created by Guido van Rossum (Univ. of
Amesterdam) in 1991.
▪ What is a high-level programming language?
– Not interpretable or directly executable by the CPU
– Has to be translated into a low-level language (assembly
language) or the executable machine language
– E.g.: Python (C, C++, Java, Ruby, …)
▪ Advantages (as compared to low-level languages):
– Easier to implement and require shorter amount of time to
write
▪ (Very) English like
▪ More readable/comprehensible by programmers
– Portable and platform independent
▪ Programs just have to be written once but can be
run on any types of computer platform (without
much modification effort)
▪ When you execute a Python program:
– Source code of your program (.py files) is compiled
(translated) into a format known as byte code
▪ Byte code is a lower-level, platform-independent
representation of the source code of your program
▪ Byte code of your programs are stored as .pyc files
in the subdirectory named pycache.
▪ Once a program has been compiled into byte code
(and whenever the byte code is loaded from the
.pyc file):
– Each of the byte code instructions will be interpreted and
executed by the runtime execution engine, Python Virtual
Machine (PVM)
[Source: Chapter 2, Learning Python by Mark Lutz (2013)]
 Python is an interpreted, interactive, object-oriented
programming language.
 Python is supported with a rich collection of
libraries or packages (i.e. ready-to-use code) to
build sophisticated programs.
 Python combines remarkable power with very clear
syntax.
 It has modules & very high level dynamic data type.
 System Programming
 Graphical User Interface Programming
 Database Programming
 Internet Scripting
 Gaming, Images, Robot etc.
 Data Analytics
 Google (web search system)
 Cisco, Intel & IBM (hardware testing)
 YouTube (video sharing services)
 NASA(Scientific Calculations)
 Available freely for most operating system on:
https://www.python.org/
 Available currently in two versions:
 Python 2.x & Python 3.x
 What are the differences:
Python 2.x is the status quo
Python 3.x is the present and the future of
the language
 Which version should I use:
i) If you are working on a new, fully independent
project, you can use 3.x
ii)If your work has dependencies it is safer to use
2.x...
 IDLE is a simple Python integrated
development environment available for
Windows, Linux, and Mac OS X.
 IDLE has a built in editor.
 You may type the above one line Python
program directly into IDLE and press enter to
execute the program.
Python can be used as a simple calculator:
>>> 2+1
>>> 3
>>> 4-1
>>> 3
>>> 2*2
4
>>> 12/3
4
>>> n = 1
>>> z = 2*n
>>> z
>> >2
OR
>>> print (z)
2
OR
>>> print(“Value of z=“,z)
>>> Value of z=2
The available arithmetic operators are:
Operator Stands for Precedence
+ sum 0
- subtraction 0
* multiplication 1
/ division 1
// integer division 1
% remainder 1
** power 2
 Python evaluates arithmetic expressions according
to precedence:
>>> 8//3
>>> 2
>>> 5%2
>>> 1
>>> 2**3
>>> 8
>>> print (8//3+5%2+2**3)
11
 Python has a limited knowledge of mathematical
functions.
 There is however a module, math, that extends
that: sqrt, factorial, pow, etc...
For example:
>>> import math
>>> math.sqrt(25))
5
OR
>>> from math import sqrt
>>> sqrt(25)
5
 Python also handles complex numbers:
Imaginary numbers are written with the suffix j or J.
Complex number have the form (real+imag j) or
with complex(real,imag)
 Complex number have the form (real+imag j)
 A complex number z has a real part and an
imaginary part, which are accessible with
z.real and z.imag.
>>> z = 3.0+4.0j
>>> z.real
3.0
>>> z.imag
4.0
Structure of a Python program:
 Programs are composed of modules.
 Modules contain statements(instructions) and
expressions.
 Instructions and expressions create and
process objects.
Objects correspond to a certain memory
region to which a unique memory address is
associated and in which we store:
 Data,
 Information about the data,
 Functions that act upon the data.
For example:
>>> x = 123
 creates the object 123, somewhere in
memory and gives it the name x.
 We can also say that x “is reference to” the
object or even that “it points to” the object.
We can easily obtain the type and unique memory
address for an object:
>>> x = 1.2
>>> print(x)
1.2
>>> type(x)
<type float>
>>> id(x)
135625436
It is possible to give more than one name to
an object. This is called aliasing:
>>> x = 45
>>> y = 45
>>> id(x)
135363888
>>> id(y)
135363888
We can even do aliasing in just one go:
>>> x = y = 45
>>> id(x)
135363888
>>> id(y)
135363888
Thanks

More Related Content

Similar to python PPT Session 1.pptx

Python tutorial for beginners - Tib academy
Python tutorial for beginners - Tib academyPython tutorial for beginners - Tib academy
Python tutorial for beginners - Tib academyTIB Academy
 
Python | What is Python | History of Python | Python Tutorial
Python | What is Python | History of Python | Python TutorialPython | What is Python | History of Python | Python Tutorial
Python | What is Python | History of Python | Python TutorialQA TrainingHub
 
Python quick guide1
Python quick guide1Python quick guide1
Python quick guide1Kanchilug
 
Python_Introduction_Good_PPT.pptx
Python_Introduction_Good_PPT.pptxPython_Introduction_Good_PPT.pptx
Python_Introduction_Good_PPT.pptxlemonchoos
 
Phython Programming Language
Phython Programming LanguagePhython Programming Language
Phython Programming LanguageR.h. Himel
 
session5-Getting stated with Python.pdf
session5-Getting stated with Python.pdfsession5-Getting stated with Python.pdf
session5-Getting stated with Python.pdfAyushDutta32
 
Python_final_print_vison_academy_9822506209.pdf
Python_final_print_vison_academy_9822506209.pdfPython_final_print_vison_academy_9822506209.pdf
Python_final_print_vison_academy_9822506209.pdfVisionAcademyProfSac
 
Python_final_print_batch_II_vision_academy.pdf
Python_final_print_batch_II_vision_academy.pdfPython_final_print_batch_II_vision_academy.pdf
Python_final_print_batch_II_vision_academy.pdfbhagyashri686896
 
Python_final_print_batch_II_vision_academy (1).pdf
Python_final_print_batch_II_vision_academy (1).pdfPython_final_print_batch_II_vision_academy (1).pdf
Python_final_print_batch_II_vision_academy (1).pdfrupaliakhute
 
Python_final_print_batch_II_vision_academy.pdf
Python_final_print_batch_II_vision_academy.pdfPython_final_print_batch_II_vision_academy.pdf
Python_final_print_batch_II_vision_academy.pdfsannykhopade
 
Python_vision_academy notes
Python_vision_academy notes Python_vision_academy notes
Python_vision_academy notes rajaniraut
 
Python Book/Notes For Python Book/Notes For S.Y.B.Sc. I.T.
Python Book/Notes For Python Book/Notes For S.Y.B.Sc. I.T.Python Book/Notes For Python Book/Notes For S.Y.B.Sc. I.T.
Python Book/Notes For Python Book/Notes For S.Y.B.Sc. I.T.Niraj Bharambe
 
Python and its Applications
Python and its ApplicationsPython and its Applications
Python and its ApplicationsAbhijeet Singh
 
Pythonanditsapplications 161121160425
Pythonanditsapplications 161121160425Pythonanditsapplications 161121160425
Pythonanditsapplications 161121160425Sapna Tyagi
 
Simple calulator using GUI tkinter.pptx
Simple calulator using GUI tkinter.pptxSimple calulator using GUI tkinter.pptx
Simple calulator using GUI tkinter.pptxYashSharma357857
 
Final presentation on python
Final presentation on pythonFinal presentation on python
Final presentation on pythonRaginiJain21
 
Python Programming | JNTUK | UNIT 1 | Lecture 3
Python Programming | JNTUK | UNIT 1 | Lecture 3Python Programming | JNTUK | UNIT 1 | Lecture 3
Python Programming | JNTUK | UNIT 1 | Lecture 3FabMinds
 

Similar to python PPT Session 1.pptx (20)

Python tutorial for beginners - Tib academy
Python tutorial for beginners - Tib academyPython tutorial for beginners - Tib academy
Python tutorial for beginners - Tib academy
 
Python | What is Python | History of Python | Python Tutorial
Python | What is Python | History of Python | Python TutorialPython | What is Python | History of Python | Python Tutorial
Python | What is Python | History of Python | Python Tutorial
 
Python quick guide1
Python quick guide1Python quick guide1
Python quick guide1
 
MODULE 1.pptx
MODULE 1.pptxMODULE 1.pptx
MODULE 1.pptx
 
Python Programming Draft PPT.pptx
Python Programming Draft PPT.pptxPython Programming Draft PPT.pptx
Python Programming Draft PPT.pptx
 
Python_Introduction_Good_PPT.pptx
Python_Introduction_Good_PPT.pptxPython_Introduction_Good_PPT.pptx
Python_Introduction_Good_PPT.pptx
 
Phython Programming Language
Phython Programming LanguagePhython Programming Language
Phython Programming Language
 
session5-Getting stated with Python.pdf
session5-Getting stated with Python.pdfsession5-Getting stated with Python.pdf
session5-Getting stated with Python.pdf
 
Python_final_print_vison_academy_9822506209.pdf
Python_final_print_vison_academy_9822506209.pdfPython_final_print_vison_academy_9822506209.pdf
Python_final_print_vison_academy_9822506209.pdf
 
Python_final_print_batch_II_vision_academy.pdf
Python_final_print_batch_II_vision_academy.pdfPython_final_print_batch_II_vision_academy.pdf
Python_final_print_batch_II_vision_academy.pdf
 
Python_final_print_batch_II_vision_academy (1).pdf
Python_final_print_batch_II_vision_academy (1).pdfPython_final_print_batch_II_vision_academy (1).pdf
Python_final_print_batch_II_vision_academy (1).pdf
 
Python_final_print_batch_II_vision_academy.pdf
Python_final_print_batch_II_vision_academy.pdfPython_final_print_batch_II_vision_academy.pdf
Python_final_print_batch_II_vision_academy.pdf
 
Python_vision_academy notes
Python_vision_academy notes Python_vision_academy notes
Python_vision_academy notes
 
Python Book/Notes For Python Book/Notes For S.Y.B.Sc. I.T.
Python Book/Notes For Python Book/Notes For S.Y.B.Sc. I.T.Python Book/Notes For Python Book/Notes For S.Y.B.Sc. I.T.
Python Book/Notes For Python Book/Notes For S.Y.B.Sc. I.T.
 
Python and its Applications
Python and its ApplicationsPython and its Applications
Python and its Applications
 
Pythonanditsapplications 161121160425
Pythonanditsapplications 161121160425Pythonanditsapplications 161121160425
Pythonanditsapplications 161121160425
 
Chapter - 1.pptx
Chapter - 1.pptxChapter - 1.pptx
Chapter - 1.pptx
 
Simple calulator using GUI tkinter.pptx
Simple calulator using GUI tkinter.pptxSimple calulator using GUI tkinter.pptx
Simple calulator using GUI tkinter.pptx
 
Final presentation on python
Final presentation on pythonFinal presentation on python
Final presentation on python
 
Python Programming | JNTUK | UNIT 1 | Lecture 3
Python Programming | JNTUK | UNIT 1 | Lecture 3Python Programming | JNTUK | UNIT 1 | Lecture 3
Python Programming | JNTUK | UNIT 1 | Lecture 3
 

Recently uploaded

Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 

Recently uploaded (20)

Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 

python PPT Session 1.pptx

  • 1.  What is Python?  Features of Python  What we can do with Python?  Companies using python today  Installing Python  Python as a Calculator/Arithmetic Expression
  • 2.  Python is a VHLL (Very High Level Language).  VHLL is designed to reduce the complexity and to reduce amount of source code required to create a program  Created by Guido van Rossum (Univ. of Amesterdam) in 1991.
  • 3. ▪ What is a high-level programming language? – Not interpretable or directly executable by the CPU – Has to be translated into a low-level language (assembly language) or the executable machine language – E.g.: Python (C, C++, Java, Ruby, …) ▪ Advantages (as compared to low-level languages): – Easier to implement and require shorter amount of time to write ▪ (Very) English like ▪ More readable/comprehensible by programmers – Portable and platform independent ▪ Programs just have to be written once but can be run on any types of computer platform (without much modification effort)
  • 4. ▪ When you execute a Python program: – Source code of your program (.py files) is compiled (translated) into a format known as byte code ▪ Byte code is a lower-level, platform-independent representation of the source code of your program ▪ Byte code of your programs are stored as .pyc files in the subdirectory named pycache. ▪ Once a program has been compiled into byte code (and whenever the byte code is loaded from the .pyc file): – Each of the byte code instructions will be interpreted and executed by the runtime execution engine, Python Virtual Machine (PVM)
  • 5. [Source: Chapter 2, Learning Python by Mark Lutz (2013)]
  • 6.  Python is an interpreted, interactive, object-oriented programming language.  Python is supported with a rich collection of libraries or packages (i.e. ready-to-use code) to build sophisticated programs.  Python combines remarkable power with very clear syntax.  It has modules & very high level dynamic data type.
  • 7.  System Programming  Graphical User Interface Programming  Database Programming  Internet Scripting  Gaming, Images, Robot etc.  Data Analytics
  • 8.  Google (web search system)  Cisco, Intel & IBM (hardware testing)  YouTube (video sharing services)  NASA(Scientific Calculations)
  • 9.  Available freely for most operating system on: https://www.python.org/  Available currently in two versions:  Python 2.x & Python 3.x  What are the differences: Python 2.x is the status quo Python 3.x is the present and the future of the language  Which version should I use: i) If you are working on a new, fully independent project, you can use 3.x ii)If your work has dependencies it is safer to use 2.x...
  • 10.  IDLE is a simple Python integrated development environment available for Windows, Linux, and Mac OS X.  IDLE has a built in editor.  You may type the above one line Python program directly into IDLE and press enter to execute the program.
  • 11.
  • 12. Python can be used as a simple calculator: >>> 2+1 >>> 3 >>> 4-1 >>> 3 >>> 2*2 4 >>> 12/3 4
  • 13. >>> n = 1 >>> z = 2*n >>> z >> >2 OR >>> print (z) 2 OR >>> print(“Value of z=“,z) >>> Value of z=2
  • 14. The available arithmetic operators are: Operator Stands for Precedence + sum 0 - subtraction 0 * multiplication 1 / division 1 // integer division 1 % remainder 1 ** power 2
  • 15.  Python evaluates arithmetic expressions according to precedence: >>> 8//3 >>> 2 >>> 5%2 >>> 1 >>> 2**3 >>> 8 >>> print (8//3+5%2+2**3) 11
  • 16.  Python has a limited knowledge of mathematical functions.  There is however a module, math, that extends that: sqrt, factorial, pow, etc... For example: >>> import math >>> math.sqrt(25)) 5 OR >>> from math import sqrt >>> sqrt(25) 5
  • 17.  Python also handles complex numbers: Imaginary numbers are written with the suffix j or J. Complex number have the form (real+imag j) or with complex(real,imag)
  • 18.  Complex number have the form (real+imag j)  A complex number z has a real part and an imaginary part, which are accessible with z.real and z.imag. >>> z = 3.0+4.0j >>> z.real 3.0 >>> z.imag 4.0
  • 19. Structure of a Python program:  Programs are composed of modules.  Modules contain statements(instructions) and expressions.  Instructions and expressions create and process objects.
  • 20. Objects correspond to a certain memory region to which a unique memory address is associated and in which we store:  Data,  Information about the data,  Functions that act upon the data.
  • 21. For example: >>> x = 123  creates the object 123, somewhere in memory and gives it the name x.  We can also say that x “is reference to” the object or even that “it points to” the object.
  • 22. We can easily obtain the type and unique memory address for an object: >>> x = 1.2 >>> print(x) 1.2 >>> type(x) <type float> >>> id(x) 135625436
  • 23. It is possible to give more than one name to an object. This is called aliasing: >>> x = 45 >>> y = 45 >>> id(x) 135363888 >>> id(y) 135363888
  • 24. We can even do aliasing in just one go: >>> x = y = 45 >>> id(x) 135363888 >>> id(y) 135363888