$ python
>>> while True:
... print("Help, I'm trapped in a loop!")
There's a little bit more punctuation (>>> and ... don't count) but you don't have to fuss with line numbers.These days, when someone I know is interested in learning some computer programming, I tell them to get a copy of Introduction to Computer Science Using Python by Dierbach. My own intro programming books are horribly outdated at this point, but I happen to have a copy of Dierbach's book, and I think it is pretty nice. You start up by firing up the Python REPL on your computer, and from there it talks about how computers work.
IMO, this is an easier way to start computer programming than we ever had with BASIC. The barrier to entry is as low as it ever was, the languages are a lot nicer and you can definitely get real work done with Python, and over the years we've gotten more textbooks & better textbooks.
Honestly, the real friction here is that you have to open up a terminal window and type "python". Or if you are interested in JavaScript, you have to press Ctrl+Shift+I or some other combo to bring up a REPL in whatever browser window is already open. It's not friction, it's just a little obfuscation--give someone a computer and they probably won't discover Python or JavaScript just by playing around with it, but if you give someone an Apple II, they're going to run head-first into BASIC.
HTDP.org is also really good if you go the Scheme route instead.
I found the Harvard CS50 really, flashy and fluff. Didn't enjoy it. I took an alternate to it, Introduction to Computer Science using Python on Edx.
After getting through basic of "Introduction to Computer Science Using Python" and forever pending goal to become a "Python Developer", is anyone here who is experience in Python willing to be my mentor? In return, free Python labor. :)
My future really rests upon this. I have a degree in mechanical engineering with irrelevant experience. My only regret is not doing bachelors in computer science.
I wouldn't lie if all the post got me little tensed and made me thinking, "what am I doing with my time". About to finish introduction to Computer Science using Python on Edx.