SlideShare uma empresa Scribd logo
1 de 15
Baixar para ler offline
WhatisPython?
WhatisC++?
Basicsof
Python
Basicsofc++
Comparisonbetween
python and c++
WhatisPython?
WhatisC++?
Basicsof
Python
Basicsofc++
What is Python?
WhatisPython?
WhatisC++?
Basicsof
Python
Applications
What is C++?
❑ C++ is a general-purpose programming language that emphasizes the design and
use of type-rich lightweight abstractions.
❑ It is best suited for resource-constrained applications, such as those found in
software infrastructures.
❑ It was created as an extension of C, which means that any program written in C is
also a valid C++ program.
❑ The use of C++ has changed dramatically over the years – so has the language
itself. It is a language for someone who takes the task of programming seriously.
❑ Ordinary practical programmers have achieved significant improvements in
productivity, flexibility, and quality in projects of just about any kind and scale.
❑ The latest iteration of C++ standard has introduced many new features that help
control the complexity of programs.
Whatis
WhatisC++?
BasicsofPython
Basicsofc++
Free, open
source, cross-
platform
Basics
of
Python
Whatis
WhatisC++?
Technology
Basicsofc++
C++ was
created as an
extension of C
its core application
domain is systems
programming in
the broadest sense
Basics of
c++
NatureofPythonandC++
python
c++
Comparisonbetween
python and c++
NatureofPythonand
C++
python
c++
3
2
1
Nature of Python and C++
Python C++
1
2
3
Python is a dynamically typed
language which looks like it was
designed and not accumulated
It has a minimalist design that makes
code easy to understand and easy to
predict
Python is strongly typed language in
which type checking is done at run-
time and variables cannot be implicitly
coerced to unrelated types
C++ is a statically typed language in
which variable types are explicitly
declared and are determined at
compile time
Static typed languages like C++
associate types with variables,
not with values.
Highly portable, a top choice for
multi-device, multi-platform
development
NatureofPython
andC++
python
c++
Python’s standard
implementation is
currently coded in C, so all
the normal rules about
mixing C programs with
C++ programs apply to the
Python interpreter.
Python uses dynamic
memory allocation
process which involves
a private heap
containing all Python
objects and data
structures
Python is well suited
for modern software
methodologies such as
modular, structured,
and object-oriented
design, which allow
code to be written
once and reused many
times.
NatureofPython
andC++
python
c++
C++ does not need a
garbage collector
because it has no
garbage which in turn
makes it more prone
to memory leak.
Memory
management in C++
is both prone to
errors and time
consuming.
Memory Management and
Efficiency
In c++
C++ is a low level
language which
makes it less
versatile and more
difficult to learn
than Python
conclusion
conclusion
conclusion
conclusion
The conclusions of
differences between
C++ and Python:
conclusion
Conclusion
conclusion
Conclusion
Python uses Garbage Collectionwhereas C++ does not.
C++ is a statically typed language, while Python is a
dynamically typed language.
Python is easier to use than C++.
Python is run through an interpreter,whilst C++ is pre-
compiled.Hence, C++ is faster than Python
C++ supports pointers and incredible memory management.
The conclusions of differences between C++ and Python:
conclusion
conclusion
conclusion
conclusions Python has less backwards compatibility.
Majority of all applications are built fromC++.
Majority of all 3D applications offerPython access to their API's.
Python code tends to be 5 to 10 times shorter than that
writtenin C++.
In Python, there is no need to declare types explicitly.
The conclusions of differences between C++ and Python:
conclusion
conclusion
conclusion
conclusion
Python requires an engine to run.
Python is interpretedeach time it runs.
Python is hard to install on a Windows box and thus makes
distributionof the programproblematic.
C++ is a pure binary that links to existing libraries to assistthe
coding.
In Python, variables are in scope evenoutside the loops in which
they are firstinstantiated.
The conclusions of differences between C++ and Python:
conclusion
conclusion
conclusion
conclusion
Python provides flexibility in calling functions and returning values.
Python looks cleaner,is object oriented,and still maintains
a little strictness about types.
The conclusions of differences between C++ and Python:
‫لمك‬ ً‫ا‬‫ر‬‫شك‬

Mais conteúdo relacionado

Mais procurados

Mais procurados (19)

Why Python?
Why Python?Why Python?
Why Python?
 
Introduction python
Introduction pythonIntroduction python
Introduction python
 
Python Usefulness
Python UsefulnessPython Usefulness
Python Usefulness
 
Python Online From EasyLearning Guru
Python Online From EasyLearning GuruPython Online From EasyLearning Guru
Python Online From EasyLearning Guru
 
Python basic
Python basicPython basic
Python basic
 
Ali alshehri c++_comparison between c++&python
Ali alshehri c++_comparison between c++&pythonAli alshehri c++_comparison between c++&python
Ali alshehri c++_comparison between c++&python
 
presentation on C++ basics by prince kumar kushwaha
presentation on C++ basics by prince kumar kushwahapresentation on C++ basics by prince kumar kushwaha
presentation on C++ basics by prince kumar kushwaha
 
Benefits & features of python |Advantages & disadvantages of python
Benefits & features of python |Advantages & disadvantages of pythonBenefits & features of python |Advantages & disadvantages of python
Benefits & features of python |Advantages & disadvantages of python
 
C++ language
C++ languageC++ language
C++ language
 
FunScript: Why bother?
FunScript: Why bother?FunScript: Why bother?
FunScript: Why bother?
 
Limitations of python
Limitations of pythonLimitations of python
Limitations of python
 
Why learn python in 2017?
Why learn python in 2017?Why learn python in 2017?
Why learn python in 2017?
 
Lets learn Python !
Lets learn Python !Lets learn Python !
Lets learn Python !
 
What is c#
What is c#What is c#
What is c#
 
Lets Go - An introduction to Google's Go Programming Language
Lets Go - An introduction to Google's Go Programming Language Lets Go - An introduction to Google's Go Programming Language
Lets Go - An introduction to Google's Go Programming Language
 
Introduction to python
Introduction to pythonIntroduction to python
Introduction to python
 
Python for the Mobile and Web
Python for the Mobile and WebPython for the Mobile and Web
Python for the Mobile and Web
 
C/C++ History in few slides
C/C++ History in few slides C/C++ History in few slides
C/C++ History in few slides
 
Python course syllabus
Python course syllabusPython course syllabus
Python course syllabus
 

Semelhante a Comparison between python and c++

Python Programming and ApplicationsUnit-1.docx
Python Programming and ApplicationsUnit-1.docxPython Programming and ApplicationsUnit-1.docx
Python Programming and ApplicationsUnit-1.docx
Manohar k
 
Basic Python Introduction Lecture 1.pptx
Basic Python Introduction Lecture 1.pptxBasic Python Introduction Lecture 1.pptx
Basic Python Introduction Lecture 1.pptx
Aditya Patel
 
Python Intro For Managers
Python Intro For ManagersPython Intro For Managers
Python Intro For Managers
Atul Shridhar
 

Semelhante a Comparison between python and c++ (20)

Difference between python and c++
Difference between python and c++Difference between python and c++
Difference between python and c++
 
Why Python is the Best Coding Language For PWA Development_.ppt
Why Python is the Best Coding Language For PWA Development_.pptWhy Python is the Best Coding Language For PWA Development_.ppt
Why Python is the Best Coding Language For PWA Development_.ppt
 
IRJET- Python: Simple though an Important Programming Language
IRJET- Python: Simple though an Important Programming LanguageIRJET- Python: Simple though an Important Programming Language
IRJET- Python: Simple though an Important Programming Language
 
Python Programming and ApplicationsUnit-1.docx
Python Programming and ApplicationsUnit-1.docxPython Programming and ApplicationsUnit-1.docx
Python Programming and ApplicationsUnit-1.docx
 
Research paper on python by Rj
Research paper on python by RjResearch paper on python by Rj
Research paper on python by Rj
 
Basic Python Introduction Lecture 1.pptx
Basic Python Introduction Lecture 1.pptxBasic Python Introduction Lecture 1.pptx
Basic Python Introduction Lecture 1.pptx
 
Programming in python in detail concept .pptx
Programming in python in detail concept .pptxProgramming in python in detail concept .pptx
Programming in python in detail concept .pptx
 
Lecture 1.pptx
Lecture 1.pptxLecture 1.pptx
Lecture 1.pptx
 
Fantasy cricket game using python(intershala project)
Fantasy cricket game using python(intershala project)Fantasy cricket game using python(intershala project)
Fantasy cricket game using python(intershala project)
 
Python App Development_ 7 Things to Keep in Mind.pdf
Python App Development_ 7 Things to Keep in Mind.pdfPython App Development_ 7 Things to Keep in Mind.pdf
Python App Development_ 7 Things to Keep in Mind.pdf
 
intro.pptx (1).pdf
intro.pptx (1).pdfintro.pptx (1).pdf
intro.pptx (1).pdf
 
Migration of Applications to Python is the most prudent Decision
Migration of Applications to Python is the most prudent DecisionMigration of Applications to Python is the most prudent Decision
Migration of Applications to Python is the most prudent Decision
 
Python'den Guide.pdf
Python'den Guide.pdfPython'den Guide.pdf
Python'den Guide.pdf
 
Python Intro For Managers
Python Intro For ManagersPython Intro For Managers
Python Intro For Managers
 
Pythonic doesn't mean slow!
Pythonic doesn't mean slow!Pythonic doesn't mean slow!
Pythonic doesn't mean slow!
 
Advantages of Python Learning | Why Python
Advantages of Python Learning | Why PythonAdvantages of Python Learning | Why Python
Advantages of Python Learning | Why Python
 
Python Tutorial | Python Programming Language
Python Tutorial | Python Programming LanguagePython Tutorial | Python Programming Language
Python Tutorial | Python Programming Language
 
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
 
Introduction to Python Programming Basics
Introduction  to  Python  Programming BasicsIntroduction  to  Python  Programming Basics
Introduction to Python Programming Basics
 
C Programming Online Training
C Programming Online TrainingC Programming Online Training
C Programming Online Training
 

Último

Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 
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
PECB
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
negromaestrong
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 

Último (20)

Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
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
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . 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
 
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural ResourcesEnergy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 

Comparison between python and c++