SlideShare une entreprise Scribd logo
1  sur  12
Télécharger pour lire hors ligne
About c++
facts
C++ development began in 1979, four years before its release,
and it did not start with the name C++; Its first name was C with
classes.
1
In the late part of 1983, C withClasses was first usedfor
AT&T's internal programming needs.2
Its name was changed toC++ later inthe same
year, C++ was not releasedcommercially until the
late part of 1985.3
C++ implements dataabstractionusing aconcept called
classes, along withother features toallow object-oriented
programming and is consideredahigh-level language4
About c++
facts
Python is an interpreted, high-level, general-purpose
programming language. Created by Guido van Rossum and first
released in 1991
1
Python features adynamic type systemandautomatic
memory management.2
It supports multiple programming paradigms, including
object-oriented, imperative, functional andprocedural.
It alsohas a comprehensive standardlibrary.3
Python has a designphilosophy that emphasizes code readability,
notably using significant whitespace. It provides constructs that
enable clear programming onboth small and large scales.4
STEP
01
A wide range of
applications, varying
from simple GUI
applications to vivid
3D games and real-
time mathematical
simulations
02
STEP
Highly portable, a top
choice for multi-device,
multi-platform
development
STEP
03
Object-oriented
programming language
leveraging classes, data
abstraction and
encapsulation, inheritance,
and polymorphism
04
STEP
Efficient, fast, and
powerful
Rich function library
C++
Highlights
STEP
01
Used for prototyping
and testing code that
is later to be
implemented using
other programming
languages
02
STEP
High-level language
with high readability
and reliability
STEP
03
Python programs are easy
to modify for supporting
different database
engines
04
STEP
Active community
support and rapid
development
python
Highlights
Uses of c++
➢ C++ is used by programmers to create computersoftware. It is used to create general systems
software, drivers for various computerdevices, software for servers and software for specific
applicationsand also widely used in the creation of video games.
➢ C++ is used by many programmers of different types and coming from different fields. C++ is
mostly used to write device driver programs, system software, and applicationsthat depend on
direct hardware manipulationunderreal-time constraints.
➢ It is used to teach the basics of object-orientedfeatures because it is simple
➢ it is used in the fields of research. Also, many primary user interfaces and system files of
Windows and Macintosh are written using C++.
Uses of python
➢ Python is object-orientedStructuresupportssuch conceptsas polymorphism, operation
overloading, and multipleinheritance.
➢ It's free (open source) Downloadingand installing Python is free and easy Source code is easily
accessible
➢ It's powerful - Dynamic typing - Built-in types and tools- Library utilities - Third party -
Automatic memory management
➢ It's portable - Python runs virtually every major platformused today - As long as you have a
compatiblePython interpreterinstalled, Python programs will run in exactly the same manner,
irrespective of platform
High performance.
Low-level systems programming.
Available everywhere and reasonably well
standardized
The compile/debug/nap development cycle.
Difficulty of extending and modifying.
Non-interactive.
Writing user-interfaces
Writing graphical uer-interfaces (worse).
High level programming.
Systems integration (gluing components
together)
C++ Programming
The bad
A lot of good quality libraries and tools
Internet
Syntax is very easy to read and learn
Free dev environment and tools (as starter)
no browser support (js monopoly)
weak support for mobile
execution is slow compared to compiled code
dynamic typing, running errors
class defs, self, parent constructor
private/protected
modules path are dynamic syspath.append is
to popular
C++ Programming
The bad
C++ vs python
➢ Python code runs on all operating systems with Python installed on the same.
➢ This isn’t, however, the case with C++, which necessitates being recompiledevery time
the code is to be run on a machine with a different operating system.
➢ Unlike C++, a variable can be useddirectly without the need of its declaration in Python
code.
➢ C++ uses pointers to a great extent and doesn’t offer garbage collection. Hence, it is
prone to a memory leak. For efficient memory management
C++ vs python
➢ Python comes with a built-in dynamic memory allocation and garbage collection features.
➢ While Python is a high-level language, C++ is an intermediate-level programming language.
➢ C++ requires a declaration of a datatype before using it. In addition to lessening the ambiguity of the
code, this easies error handling. The downside of this is that the code becomes extensive.
➢ Python drops the need of mentioning the type of data before using it, hence the code becomes
shorter. Consequently, error handling becomes difficult.
➢ C++ supports OOPS functionalities, including classes, operator overloading, and virtual functions.
Python doesn’t.
Ali alshehri c++_comparison between c++&python

Contenu connexe

Tendances

Comparison between python and c++
Comparison between python and c++Comparison between python and c++
Comparison between python and c++ssusera7faf41
 
Python tutorial for beginners - Tib academy
Python tutorial for beginners - Tib academyPython tutorial for beginners - Tib academy
Python tutorial for beginners - Tib academyTIB Academy
 
POWER OF PYTHON PROGRAMMING LANGUAGE
POWER OF PYTHON PROGRAMMING LANGUAGE POWER OF PYTHON PROGRAMMING LANGUAGE
POWER OF PYTHON PROGRAMMING LANGUAGE teachersduniya.com
 
Introduction to python
Introduction to pythonIntroduction to python
Introduction to pythoneShikshak
 
Introduction of python programming
Introduction of python programmingIntroduction of python programming
Introduction of python programmingNitin Kumar Kashyap
 
IHTM Python PCEP Introduction to Python
IHTM Python PCEP Introduction to PythonIHTM Python PCEP Introduction to Python
IHTM Python PCEP Introduction to PythonIHTMINSTITUTE
 
Introduction to python programming
Introduction to python programmingIntroduction to python programming
Introduction to python programmingKiran Vadakkath
 
Python 101 for the .NET Developer
Python 101 for the .NET DeveloperPython 101 for the .NET Developer
Python 101 for the .NET DeveloperSarah Dutkiewicz
 
Python, the Language of Science and Engineering for Engineers
Python, the Language of Science and Engineering for EngineersPython, the Language of Science and Engineering for Engineers
Python, the Language of Science and Engineering for EngineersBoey Pak Cheong
 
Python course syllabus
Python course syllabusPython course syllabus
Python course syllabusSugantha T
 
Introduction to python programming, Why Python?, Applications of Python
Introduction to python programming, Why Python?, Applications of PythonIntroduction to python programming, Why Python?, Applications of Python
Introduction to python programming, Why Python?, Applications of PythonPro Guide
 
Computer languages
Computer languagesComputer languages
Computer languageswow_so
 
Unit 1 of c++ part 1 basic introduction
Unit 1 of c++ part 1 basic introductionUnit 1 of c++ part 1 basic introduction
Unit 1 of c++ part 1 basic introductionAKR Education
 

Tendances (20)

Comparison between python and c++
Comparison between python and c++Comparison between python and c++
Comparison between python and c++
 
Python tutorial for beginners - Tib academy
Python tutorial for beginners - Tib academyPython tutorial for beginners - Tib academy
Python tutorial for beginners - Tib academy
 
Python Online From EasyLearning Guru
Python Online From EasyLearning GuruPython Online From EasyLearning Guru
Python Online From EasyLearning Guru
 
POWER OF PYTHON PROGRAMMING LANGUAGE
POWER OF PYTHON PROGRAMMING LANGUAGE POWER OF PYTHON PROGRAMMING LANGUAGE
POWER OF PYTHON PROGRAMMING LANGUAGE
 
Introduction to python
Introduction to pythonIntroduction to python
Introduction to python
 
Introduction of python programming
Introduction of python programmingIntroduction of python programming
Introduction of python programming
 
IHTM Python PCEP Introduction to Python
IHTM Python PCEP Introduction to PythonIHTM Python PCEP Introduction to Python
IHTM Python PCEP Introduction to Python
 
Python for beginners
Python for beginnersPython for beginners
Python for beginners
 
Introduction to python programming
Introduction to python programmingIntroduction to python programming
Introduction to python programming
 
Python 101 for the .NET Developer
Python 101 for the .NET DeveloperPython 101 for the .NET Developer
Python 101 for the .NET Developer
 
Basics of python
Basics of pythonBasics of python
Basics of python
 
Python, the Language of Science and Engineering for Engineers
Python, the Language of Science and Engineering for EngineersPython, the Language of Science and Engineering for Engineers
Python, the Language of Science and Engineering for Engineers
 
Python course syllabus
Python course syllabusPython course syllabus
Python course syllabus
 
Introduction to python programming, Why Python?, Applications of Python
Introduction to python programming, Why Python?, Applications of PythonIntroduction to python programming, Why Python?, Applications of Python
Introduction to python programming, Why Python?, Applications of Python
 
Computer languages
Computer languagesComputer languages
Computer languages
 
Python
PythonPython
Python
 
Unit 1 of c++ part 1 basic introduction
Unit 1 of c++ part 1 basic introductionUnit 1 of c++ part 1 basic introduction
Unit 1 of c++ part 1 basic introduction
 
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?
 
Introduction to python
 Introduction to python Introduction to python
Introduction to python
 

Similaire à Ali alshehri c++_comparison between c++&python

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
 
intro.pptx (1).pdf
intro.pptx (1).pdfintro.pptx (1).pdf
intro.pptx (1).pdfANIKULSAIKH
 
Introduction to python for Beginners
Introduction to python for Beginners Introduction to python for Beginners
Introduction to python for Beginners Sujith Kumar
 
Python Tutorial | Python Programming Language
Python Tutorial | Python Programming LanguagePython Tutorial | Python Programming Language
Python Tutorial | Python Programming Languageanaveenkumar4
 
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
 
Module1-Chapter1_ppt.pptx
Module1-Chapter1_ppt.pptxModule1-Chapter1_ppt.pptx
Module1-Chapter1_ppt.pptxSandeepR95
 
Python quick guide1
Python quick guide1Python quick guide1
Python quick guide1Kanchilug
 
Summer training PPT Manasv Singharia.pptx
Summer training PPT Manasv Singharia.pptxSummer training PPT Manasv Singharia.pptx
Summer training PPT Manasv Singharia.pptxshokeenk14
 
Phython Programming Language
Phython Programming LanguagePhython Programming Language
Phython Programming LanguageR.h. Himel
 
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 .pptxKavitha713564
 
Python Programming Unit1_Aditya College of Engg & Tech
Python Programming Unit1_Aditya College of Engg & TechPython Programming Unit1_Aditya College of Engg & Tech
Python Programming Unit1_Aditya College of Engg & TechRamanamurthy Banda
 
session5-Getting stated with Python.pdf
session5-Getting stated with Python.pdfsession5-Getting stated with Python.pdf
session5-Getting stated with Python.pdfAyushDutta32
 
Python programming language introduction unit
Python programming language introduction unitPython programming language introduction unit
Python programming language introduction unitmichaelaaron25322
 
Simple calulator using GUI tkinter.pptx
Simple calulator using GUI tkinter.pptxSimple calulator using GUI tkinter.pptx
Simple calulator using GUI tkinter.pptxYashSharma357857
 

Similaire à Ali alshehri c++_comparison between c++&python (20)

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
 
intro.pptx (1).pdf
intro.pptx (1).pdfintro.pptx (1).pdf
intro.pptx (1).pdf
 
Introduction to python for Beginners
Introduction to python for Beginners Introduction to python for Beginners
Introduction to python for Beginners
 
Python Tutorial | Python Programming Language
Python Tutorial | Python Programming LanguagePython Tutorial | Python Programming Language
Python Tutorial | Python Programming Language
 
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
 
Module1-Chapter1_ppt.pptx
Module1-Chapter1_ppt.pptxModule1-Chapter1_ppt.pptx
Module1-Chapter1_ppt.pptx
 
Python Programming Draft PPT.pptx
Python Programming Draft PPT.pptxPython Programming Draft PPT.pptx
Python Programming Draft PPT.pptx
 
Python quick guide1
Python quick guide1Python quick guide1
Python quick guide1
 
Summer training PPT Manasv Singharia.pptx
Summer training PPT Manasv Singharia.pptxSummer training PPT Manasv Singharia.pptx
Summer training PPT Manasv Singharia.pptx
 
Phython Programming Language
Phython Programming LanguagePhython Programming Language
Phython Programming Language
 
ppt summer training ug.pptx
ppt summer training ug.pptxppt summer training ug.pptx
ppt summer training ug.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
 
Python Programming Unit1_Aditya College of Engg & Tech
Python Programming Unit1_Aditya College of Engg & TechPython Programming Unit1_Aditya College of Engg & Tech
Python Programming Unit1_Aditya College of Engg & Tech
 
session5-Getting stated with Python.pdf
session5-Getting stated with Python.pdfsession5-Getting stated with Python.pdf
session5-Getting stated with Python.pdf
 
Research paper on python by Rj
Research paper on python by RjResearch paper on python by Rj
Research paper on python by Rj
 
Python programming language introduction unit
Python programming language introduction unitPython programming language introduction unit
Python programming language introduction unit
 
Simple calulator using GUI tkinter.pptx
Simple calulator using GUI tkinter.pptxSimple calulator using GUI tkinter.pptx
Simple calulator using GUI tkinter.pptx
 

Dernier

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.pdfAdmir Softic
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
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
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
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
 
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 . pdfQucHHunhnh
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
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
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
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
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...PsychoTech Services
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 

Dernier (20)

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
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
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
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
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
 
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
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
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
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
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
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 

Ali alshehri c++_comparison between c++&python

  • 1.
  • 2. About c++ facts C++ development began in 1979, four years before its release, and it did not start with the name C++; Its first name was C with classes. 1 In the late part of 1983, C withClasses was first usedfor AT&T's internal programming needs.2 Its name was changed toC++ later inthe same year, C++ was not releasedcommercially until the late part of 1985.3 C++ implements dataabstractionusing aconcept called classes, along withother features toallow object-oriented programming and is consideredahigh-level language4
  • 3. About c++ facts Python is an interpreted, high-level, general-purpose programming language. Created by Guido van Rossum and first released in 1991 1 Python features adynamic type systemandautomatic memory management.2 It supports multiple programming paradigms, including object-oriented, imperative, functional andprocedural. It alsohas a comprehensive standardlibrary.3 Python has a designphilosophy that emphasizes code readability, notably using significant whitespace. It provides constructs that enable clear programming onboth small and large scales.4
  • 4. STEP 01 A wide range of applications, varying from simple GUI applications to vivid 3D games and real- time mathematical simulations 02 STEP Highly portable, a top choice for multi-device, multi-platform development STEP 03 Object-oriented programming language leveraging classes, data abstraction and encapsulation, inheritance, and polymorphism 04 STEP Efficient, fast, and powerful Rich function library C++ Highlights
  • 5. STEP 01 Used for prototyping and testing code that is later to be implemented using other programming languages 02 STEP High-level language with high readability and reliability STEP 03 Python programs are easy to modify for supporting different database engines 04 STEP Active community support and rapid development python Highlights
  • 6. Uses of c++ ➢ C++ is used by programmers to create computersoftware. It is used to create general systems software, drivers for various computerdevices, software for servers and software for specific applicationsand also widely used in the creation of video games. ➢ C++ is used by many programmers of different types and coming from different fields. C++ is mostly used to write device driver programs, system software, and applicationsthat depend on direct hardware manipulationunderreal-time constraints. ➢ It is used to teach the basics of object-orientedfeatures because it is simple ➢ it is used in the fields of research. Also, many primary user interfaces and system files of Windows and Macintosh are written using C++.
  • 7. Uses of python ➢ Python is object-orientedStructuresupportssuch conceptsas polymorphism, operation overloading, and multipleinheritance. ➢ It's free (open source) Downloadingand installing Python is free and easy Source code is easily accessible ➢ It's powerful - Dynamic typing - Built-in types and tools- Library utilities - Third party - Automatic memory management ➢ It's portable - Python runs virtually every major platformused today - As long as you have a compatiblePython interpreterinstalled, Python programs will run in exactly the same manner, irrespective of platform
  • 8. High performance. Low-level systems programming. Available everywhere and reasonably well standardized The compile/debug/nap development cycle. Difficulty of extending and modifying. Non-interactive. Writing user-interfaces Writing graphical uer-interfaces (worse). High level programming. Systems integration (gluing components together) C++ Programming The bad
  • 9. A lot of good quality libraries and tools Internet Syntax is very easy to read and learn Free dev environment and tools (as starter) no browser support (js monopoly) weak support for mobile execution is slow compared to compiled code dynamic typing, running errors class defs, self, parent constructor private/protected modules path are dynamic syspath.append is to popular C++ Programming The bad
  • 10. C++ vs python ➢ Python code runs on all operating systems with Python installed on the same. ➢ This isn’t, however, the case with C++, which necessitates being recompiledevery time the code is to be run on a machine with a different operating system. ➢ Unlike C++, a variable can be useddirectly without the need of its declaration in Python code. ➢ C++ uses pointers to a great extent and doesn’t offer garbage collection. Hence, it is prone to a memory leak. For efficient memory management
  • 11. C++ vs python ➢ Python comes with a built-in dynamic memory allocation and garbage collection features. ➢ While Python is a high-level language, C++ is an intermediate-level programming language. ➢ C++ requires a declaration of a datatype before using it. In addition to lessening the ambiguity of the code, this easies error handling. The downside of this is that the code becomes extensive. ➢ Python drops the need of mentioning the type of data before using it, hence the code becomes shorter. Consequently, error handling becomes difficult. ➢ C++ supports OOPS functionalities, including classes, operator overloading, and virtual functions. Python doesn’t.