Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

General Discussion

Which language is better?

Hi. I want to know which is better between c an python?

3 Answers

There isn't, C is for big software e.g Adobe and python is for smaller like making folders. They both have different roles. C takes more space while python doesn't.

By the way, python is use for back-end language but c is not?

Is there any course to learn c in treehoue

You can learn Objective-C which is like a more powerful version of C but not quite the same . If you start with Objective-C in the iOS track, making apps, yeah. And there should be C basics before I think. There will be C courses as its on request, I hope so, finger crossed.

Thank you Konrad Pilch.

There are probably people on either side claiming their language is better than the other but an uneducated guess would be that it depends on what you want to accomplish.

I'll leave now before the pro's come and tell me I'm all wrong := )

Yeah lol. Theres not such a language that's better. Each has its pros and cons . Each language handels different things better or worse. Like PHP and JS. Would you do stuff with PHP yo ucould do easlily with JS? im sure you would use JS.

To make it simple xd
Basically:

All languages have their advantages and disadvantages.

Both languages are Turing complete which means you can theoretically build anything in either. They have very different purposes and that makes them hard to compare.

Python is focused on readability and simplicity on complex ideas just to name a few. C is focused on low level control and speed. Python will make use of a lot of C library's in the background and Pythons interpreter is written in C.

It is the difference between using a knife or a blender to make a smoothy. C is the knife and will get the job done exactly how you want it done but it will take lots of time on your part, this is clearly not the best way to make a smoothy. Python is the blender, it is easy to use, requires little effort and is fun to do. Obviously you should use the blender in this case.

BUT if you want to cut up chicken a blender will not work as well because you don't have that fine control over each blade. The knife will work great because you have that exact control.

TLDR: Pick the correct language for the job. Python if you need a high level (web site or software) language which is easy and fun to write. C if you need low level control or speed. You can do anything in either but that doesn't mean you should.

Goodluck! --Ricky

That's good!. Thank you Ricky Catron.

Well, with that saying we can compare making a software like adobe Photoshop. You need C for the exact control of it . While with Python you can make something like an easier version of Photoshop with not as good quality and not as good functions .

Pick the right tool for the right job yeah xd at first, I believe you just do stuff with what you know like me making websites with only PHP instead of using in addition JS etc.. which I will combine when I learn them .

I believe xd