Can C , java and Python combined as one ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Can C , java and Python combined as one ?

2nd Oct 2019, 3:56 PM
Parampreet Rai
Parampreet Rai - avatar
12 Answers
+ 8
It is also possible for a high level project to use all three languages for different applications within the project.
3rd Oct 2019, 6:49 AM
Sonic
Sonic - avatar
+ 4
CPython is NOT a combination of C and python. CPython is the original Python interpreter, which is most commonly used and which can be downloaded from the python website. This program was written in C programming language. In a similar manner there is an implementation called Jython, which uses Java to create bytecode from Python code.
2nd Oct 2019, 4:47 PM
Michael
Michael - avatar
+ 4
Generally modules of Python can be written in C to have high performance etc.
3rd Oct 2019, 6:48 AM
Sonic
Sonic - avatar
+ 3
I want to ask Is there any molecules in python or java that can run C or eachother. May be call *.cpp or *.py on execution
2nd Oct 2019, 4:04 PM
Parampreet Rai
Parampreet Rai - avatar
+ 3
Yes, it is possible to write extension modules for Python in C: https://docs.python.org/3/extending/extending.html
2nd Oct 2019, 5:04 PM
Michael
Michael - avatar
+ 3
Parampreet Rai we don't usually go down to the molecular level when talking about programming languages.
3rd Oct 2019, 6:45 AM
Sonic
Sonic - avatar
+ 3
I'm curious why you asked this question, is it because you think that a super language combining all three will be beneficial?
3rd Oct 2019, 6:47 AM
Sonic
Sonic - avatar
+ 2
I don't know about Java, but based on information that atleast Numpy library is somehow written in C, I think it could some how be possible to combine Python and C. I think you can write packages for Python in C, I remember someone long long double ago gave a link for a solution in python.org, I did not read it, but you can find a solution from python.org
2nd Oct 2019, 4:54 PM
Seb TheS
Seb TheS - avatar
+ 2
Thanks a lot Sonic
3rd Oct 2019, 3:44 PM
Parampreet Rai
Parampreet Rai - avatar
+ 1
Parampreet Rai Then we would have to put semicolon in python also
4th Oct 2019, 1:45 PM
Arsenic
Arsenic - avatar
- 1
No . phython and Java are totally different
4th Oct 2019, 2:00 PM
Alen Jojo
Alen Jojo - avatar
- 1
Java and C are totally different than python and python is easy to learn.
4th Oct 2019, 3:49 PM
Mounika P2281998
Mounika P2281998 - avatar