Which programming language should I learn - Python or PHP

0 votes
May 28, 2019 in Python by Matilda
• 220 points
235 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,540 points
1,423 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
252 views
+2 votes
6 answers

How can I change directory or "cd" in Python?

Context Manager: cd import os class cd:     """Context manager for ...READ MORE

answered Oct 18, 2018 in Python by Nabarupa
17,363 views
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 2,901 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
2,135 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
298 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
2,010 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP