Which programming language should I learn - Python or PHP?

0 votes
May 28 in Python by Matilda
• 220 points
17 views

2 answers to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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,500 points
16 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
58 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,500 points
19 views
0 votes
1 answer

how can i count the items in a list?

suppose you have a list a = [0,1,2,3,4,5,6,7,8,9,10] now ...READ MORE

answered May 2 in Python by Mohammad
• 1,400 points
55 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
16 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
10 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.