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

Pranjal Agnihotri
Pranjal Agnihotri
4,187 Points

Interested in web - development which to go with PHP or Python?

I am interested in web development i have to go with PHP or Python?

2 Answers

I'd vote PHP :) (Mainly because I've never used Python...) More seriously, PHP was made for the Web. Python has a broader use spectrum, the Web being just one. Here ya go: https://hackernoon.com/php-or-python-which-language-should-you-learn-in-2017-3ced1fd75ee2.

Well it depends, I have just started PHP and I have been doing Python for a while. If you are going to go for web development you need to learn HTML and CSS first. Also learn some javascript. PHP is more of a backend language and is made to go with HTML. Python on the other hand was not made for html. For Python you not only need to learn the language, but you also need to learn a framework such as Flask or Django. These are the facts. It does not really matter what you choose, as long as you do what you want to do.

I hope this helps. :)