Which programming language should I learn - Python or PHP

0 votes
May 28, 2019 in Python by Matilda
• 220 points
835 views

2 answers to this question.

0 votes

Python's written elegantly and has a simple syntax and framework. Whereas PHP is used strictly for web application development. Python uses indentation over curly braces, whereas PHP uses curly braces and semi-colon to end each statement of the code. 

If you are looking forward to building responsive webpages, I would still recommend you to choose Python 3. Modules like Web2Py extend rich support to Python and allow responsive web pages to be developed using Python.

Python also has significant frameworks like Django, Flask, Web2Py, Pylon - package manager - pip whereas PHP uses Laravel, Symfony, Slim, Codeignitor 

answered May 28, 2019 by Harsh
• 260 points
0 votes

It really depends on what you want to learn programming for. If you only want to do back-end web development, PHP might be a practical language to start with. For almost every other situation, I'd go with Python. It's a much more modern language, easier, cleaner to learn, and so on. If you do decide on Python you can get started here: https://pythonprinciples.com/ or try the book "Automate the boring stuff" or "python crash course". Hope it helps!

answered Jun 11, 2019 by Morten

reshown Jun 11, 2019 by Vardhan

Related Questions In Python

0 votes
1 answer

How do I check which files are open or closed in Python?

Hi, good question. I have a solution ...READ MORE

answered Jan 29, 2019 in Python by Nymeria
• 3,560 points
2,485 views
0 votes
2 answers

Which IDE should I use for python?

Pycharm or Spyder. You can even use visual ...READ MORE

answered Jun 23, 2020 in Python by Anjali
971 views
0 votes
0 answers
0 votes
2 answers
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 7, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 4,397 views
0 votes
1 answer
+5 votes
6 answers

Lowercase in Python

You can simply the built-in function in ...READ MORE

answered Apr 11, 2018 in Python by hemant
• 5,790 points
4,006 views
0 votes
1 answer

What are the best IDE/platform to write code in Python

Just as any other programming language, even ...READ MORE

answered May 28, 2019 in Python by Harsh
• 260 points
723 views
0 votes
1 answer

What are the different types of data types one can use in Python?

Python provides an array of built-in constants, ...READ MORE

answered May 28, 2019 in Python by Harsh
• 260 points
3,263 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP