TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

PythonMonk – Learn Python in the browser

162 点作者 akshat大约 12 年前

13 条评论

gkoberger大约 12 年前
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 未加载
phleet大约 12 年前
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 未加载
xbryanx大约 12 年前
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 未加载
cglace大约 12 年前
"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 未加载
aroberge大约 12 年前
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 未加载
pc86大约 12 年前
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.
r0h4n大约 12 年前
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.
mmwanga大约 12 年前
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_olson大约 12 年前
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?
azakai大约 12 年前
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 未加载
pekk大约 12 年前
It is 2013. Why are you teaching Python 2?
评论 #5494616 未加载
评论 #5494085 未加载
smonff大约 12 年前
Very far away from Perl Monks.
lsiebert大约 12 年前
This probably isn't for experienced developers, but it looks gorgeous.