Which programming language should I learn - Python or PHP?

0 votes
May 28 in Python by Matilda
• 220 points
24 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 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 by Morten

reshown Jun 11 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 in Python by Nymeria
• 3,520 points
20 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
87 views
0 votes
1 answer
0 votes
1 answer

How should I write tests for Forms in Django with Python?

from django.tests import TestCase class MyTests(TestCase): ...READ MORE

answered Nov 20, 2018 in Python by Nymeria
• 3,520 points
31 views
+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 6 in Python by Neha
• 330 points

edited Jul 8 by Kalgi 173 views
+4 votes
6 answers
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 in Python by Harsh
• 260 points
29 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 in Python by Harsh
• 260 points
19 views