Which is better php or python?
python is easy. PHP not so much easy, if you wont became programmator you must learn PHP. if you are programmator "inespert"(sorry if i use this term) you should learn python... PHP is for web... if you wont became programmator of web use PHP P.S. sorry for my English
Python is made with simplicity in mind, while PHP was made to be web-based. I prefer Python and almost all shells do too. Besides, why would you ask this question on a Python Q/A board?
python intially developed as a scripting language has enlarged its domain. Its now used as scripting language, UI dev, data analysis(in Pandas , Machine learning etc) , better interface with the noSQL(big data).