r/programming • • Apr 10 '08

Is python a good first language?

[deleted] — view deleted post

21 Upvotes

79 comments sorted by

View all comments

Show parent comment

1

u/[deleted] Apr 11 '08

echo "Hello World";

-1

u/knowknowledge Apr 12 '08

Actually it would be even simpler:

Hello World

If you really want to use echo it would have to be:

<?php echo "Hello World"; ?>

As much as I enjoy python, I would say that PHP is a better first language than python because it uses common syntax as C/C++/C#/Java etc so its easier to transition later. Sure its got its differences (like the $ token before variable names), but that's far easier to forget than the colon and tab-indenting differences of Python.