TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

PythonMonk – Learn Python in the browser

162 pointsby akshatabout 12 years ago

13 comments

gkobergerabout 12 years ago
Interesting, however I feel like learning to code in a browser (even if it's JavaScript) doesn't work.<p>Sure, you may learn how to do a for loop or how variables work. But, you don't learn how to <i>actually</i> use the language. Setting up a development environment, and understanding how everything is connected is much more important.<p>Let's say you ace everything here, on CodeAcademy, etc. You still can't actually build anything.<p>(For more on this, see this article from HN a few days ago: <a href="http://blog.zackshapiro.com/want-to-learn-to-code-start-here" rel="nofollow">http://blog.zackshapiro.com/want-to-learn-to-code-start-here</a>)
评论 #5495024 未加载
评论 #5494785 未加载
评论 #5498311 未加载
评论 #5494433 未加载
phleetabout 12 years ago
The first thing I always try on sites like these is stuff like this:<p>__import__('commands').getstatusoutput('ls /')<p>or<p>__import__('subprocess').call(["ls", "-l"])<p>which gets blocked by the interpreter somehow with<p>exceptions.OSError - [Errno 11] Resource temporarily unavailable<p>I'm curious as to how you managed to do this - I've always been interested in how to sandbox something like this.
评论 #5495941 未加载
评论 #5494958 未加载
xbryanxabout 12 years ago
This is beautiful and the usability is great. But can anyone recommend some online interactive Python learning that starts at the intermediate level? I need Pai Mei to whip my sorry skills into shape, starting with OOP, sockets, image handling, and maybe data persistence?
评论 #5494774 未加载
cglaceabout 12 years ago
"Your turn now - go on and change the following code to compute the sum of the numbers 1 through 5."<p>If you input 15 and submit, it says the answer is correct. Do all online code courses just check for the retured value?<p>How do these services deal with someone running sum(i for i in xrange(1000000000000000000))?
评论 #5495688 未加载
arobergeabout 12 years ago
Tried the test to define unique. Wrote<p><pre><code> def unique(s): return list(set(s)) </code></pre> and it gave assertion errors. Nice presentation ... but incorrect Python implementation.
评论 #5494127 未加载
评论 #5494086 未加载
pc86about 12 years ago
Both GitHub and Google signins failed for me and I lost progress in the first section. May just be the work network; I'll try it at home.
r0h4nabout 12 years ago
Seems like there is a bug over here <a href="http://pythonmonk.com/learning/books/17-python-primer/chapters/98-conditional-expressions/lessons/240-conditional-expressions" rel="nofollow">http://pythonmonk.com/learning/books/17-python-primer/chapte...</a><p>"Evaluates to True when age is 40 and name is "Bob" , which should be fine i think.
mmwangaabout 12 years ago
I think this is a great way to get beginners / students coding, but the end product might be what we now know as "bolt-on" engineers. They put components together and build beautiful functional products, until it breaks and they have no idea what's "under the hood"
niels_olsonabout 12 years ago
This is really cool. I think the assertions that this learn-in-the-browser thing doesn't work is because folks on HN have seen so many entry-level courses at this point.<p>More interestingly, can I get transfer credits from Codecademy instead?
azakaiabout 12 years ago
Looks like it sends each command to run on a server - I'm curious why not execute it in the browser? (There are a few solutions for that?)
评论 #5494803 未加载
pekkabout 12 years ago
It is 2013. Why are you teaching Python 2?
评论 #5494616 未加载
评论 #5494085 未加载
smonffabout 12 years ago
Very far away from Perl Monks.
lsiebertabout 12 years ago
This probably isn't for experienced developers, but it looks gorgeous.