Home | | Computer Science 12th Std | Importing C++ Programs In Python

Chapter: 12th Computer Science : Chapter 14 : Integrating Python with MySql and C++ : Importing C++ Programs In Python

Importing C++ Programs In Python

Python and C++ are general-purpose programming language.

Introduction

Python and C++ are general-purpose programming language. However, Python is quite different from C++.



PYTHON

1 Python is typically an "interpreted" language

2 Python is a dynamic-typed language

3 Data type is not required while declaring variable

4 It can act both as scripting and general purpose language

C++

1. C++ is typically a "compiled" language

2. C++ is compiled statically typed language

3. Data type is required while declaring variable

4. It is a general purpose language

Yet these two languages complement one another perfectly. Python is mostly used as a scripting or "glue", language. That is, the top level program mostly calls routines written in C or C++. This is useful when the logic can be written in terms of existing code (For example a program written in C++) but can be called and manipulated through Python program.

 

Study Material, Lecturing Notes, Assignment, Reference, Wiki description explanation, brief detail
12th Computer Science : Chapter 14 : Integrating Python with MySql and C++ : Importing C++ Programs In Python : Importing C++ Programs In Python |


Privacy Policy, Terms and Conditions, DMCA Policy and Compliant

Copyright © 2018-2024 BrainKart.com; All Rights Reserved. Developed by Therithal info, Chennai.