• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 623
  • Last Modified:

C programming Language vs Python

Correct If I am wrong C programming language is the most powerful language, because it is lower level language, you can write code that talks directly to the kernel.. for instance you can write a business application and tailor up a specific operating system to it, seeing that Linux is based on C language, I mean you can write a Lean Linux operating system that the business application needs, no extra things on the OS that will run and the application does not need. I hope you got my point.

however I believe it is a very difficult language to learn.
I also am not aware if with C language, we can use it for web applications, or for applications that query databases (SQL,Oracle)…

Regarding Python, I am not aware if it is as powerful as C language, and if it is capable of achieving the tasks that I have indicated above that C language can do..

Thank you
0
jskfan
Asked:
jskfan
  • 9
  • 4
  • 4
  • +1
7 Solutions
 
Dave BaldwinFixer of ProblemsCommented:
Python is written in C/C++.  http://docs.python.org/2/c-api/index.html  So are PHP and Perl.

C is not terribly hard to learn.  Simple programs can be compiled without much difficulty.  However, applications like operating systems tend to be very complicated.  The first, most primitive release of Linux had 10,239 lines of code.  The current version has over 15 million lines of code.

Writing modules for Python, Perl and PHP require you to write according to a specific set of rules for that language.  As soon as you go beyond writing simple programs for yourself it gets complicated in any language.
0
 
ozoCommented:
You can write anything in either language.
It may be easier to write parts of an OS in C, or it may be easier to do garbage collection in Python, but you can still write a garbage collector in C (as the authors of Python had to do)
0
 
käµfm³d 👽Commented:
Correct If I am wrong C programming language is the most powerful language, because it is lower level language, you can write code that talks directly to the kernel.
If that is your reasoning, then one might say that assembly language is the most powerful language.

I also am not aware if with C language, we can use it for web applications, or for applications that query databases (SQL,Oracle)…
You can, but I think, and I believe others would agree, that you have an easier time working in a high-level language for tasks such as these.

Regarding Python, I am not aware if it is as powerful as C language, and if it is capable of achieving the tasks that I have indicated above that C language can do..
In terms of business tasks or mathematic/science caluculations, either language can be just as powerful as the other. One drawback to an interpreted language like Python (or other high-level languages like Java or .NET) is that you cannot write device drivers or kernel modules.
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
Dave BaldwinFixer of ProblemsCommented:
If that is your reasoning, then one might say that assembly language is the most powerful language.
After I posted I thought of that too.  Or even the programming that creates the hardware.  That can be really fun stuff but it would be too hard for my poor old brain now.  30 years ago it was fun making hardware programmed machines.
0
 
jskfanAuthor Commented:
I have downloaded python. the one thing I noticed (since I have used VB,Delphi in the past), I do not see a form where you drop objects on, then click to fire up an event procedure , for instance double_click

Does it function completely different than VB or Delphi ?
0
 
Dave BaldwinFixer of ProblemsCommented:
I don't know what you downloaded but the versions of Python that I have do not have a programming interface or IDE, they are strictly command line.  You edit the code with a plain text editor and run it at the command line.
0
 
jskfanAuthor Commented:
I see:
IDLE (Python GUI)
Module Docs
python (Command Line)
0
 
jskfanAuthor Commented:
in VB or Delphi , you have Toolbox with all tools( message box,textbox,dropdown box, etc...) that you can put on a form, I am not sure if Python has a separate GUI tool that does the same thing.
0
 
Dave BaldwinFixer of ProblemsCommented:
Apparently IDLE is a GUI IDE for Python.  It does not look like it's the Toolbox kind of thing you are used to.  This page is a guide to using IDLE: http://www.annedawson.net/Python_Editor_IDLE.htm
0
 
käµfm³d 👽Commented:
I believe Python GUI applications are typically created using TkInter. Creating GUI apps in Python is a bit more involved than VB, Delphi, or C#. The IDE isn't quite as powerful--at least the ones I've used. Maybe someone has developed a Python IDE that will give you a designer surface like you have in VB, but I would have no idea what it is. Perhaps a Python aficionado will drop by and enlighten us!
0
 
jskfanAuthor Commented:
I have installed python 2.4 I guess I will have to install 3.3, but could not find download link
0
 
jskfanAuthor Commented:
I guess I found the link...
0
 
jskfanAuthor Commented:
mmmmm... download 3.3 but still can not see the GUI that uses forms and textboxes , etc....
0
 
käµfm³d 👽Commented:
Did you see my post regarding TkInter?
0
 
jskfanAuthor Commented:
I downloaded TKInter visual python
When I opened it , it says it could not find Python version
0
 
käµfm³d 👽Commented:
I can try playing around with it when I get home. I've never used it, so I don't immediately know what the issue would be.
0
 
jskfanAuthor Commented:
Please do when you get a chance
0
 
jskfanAuthor Commented:
Thank you Guys
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

  • 9
  • 4
  • 4
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now