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.

Ask HN: How to learn Python in 2024?

20 pointsby nomilk12 months ago
A young relative asked me and I did my best but my recommendations were probably out of date (codecademy, derek banas youtube channel, andrew ng ML course). She&#x27;s interested in automations and tinkering with gpt and whisper APIs.<p>What&#x27;s the best way for someone completely new to tech to learn some python in 2024?<p>Also interested in<p>- recommended installation method,<p>- IDE,<p>- REPL etc<p>(I&#x27;d recommend vscode but for lack of REPL, so will recommend pycharm unless there&#x27;s a better option for a complete beginner)

9 comments

asicsp12 months ago
There are plenty of free resources:<p>* Python Programming by University of Helsinki (<a href="https:&#x2F;&#x2F;programming-24.mooc.fi&#x2F;" rel="nofollow">https:&#x2F;&#x2F;programming-24.mooc.fi&#x2F;</a>)<p>* Harvard CS50&#x27;s Introduction to Programming with Python (<a href="https:&#x2F;&#x2F;cs50.harvard.edu&#x2F;python&#x2F;2022&#x2F;" rel="nofollow">https:&#x2F;&#x2F;cs50.harvard.edu&#x2F;python&#x2F;2022&#x2F;</a>)<p>* futurecoder (<a href="https:&#x2F;&#x2F;futurecoder.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;futurecoder.io&#x2F;</a>) — interactive, includes integrated debuggers, enhanced tracebacks, hints for exercises and more<p>* Think Python (<a href="https:&#x2F;&#x2F;allendowney.github.io&#x2F;ThinkPython&#x2F;" rel="nofollow">https:&#x2F;&#x2F;allendowney.github.io&#x2F;ThinkPython&#x2F;</a>) — gives you a solid foundation to programming, teaches debugging right the beginning, interesting exercises, etc<p>* The Python Coding Book (<a href="https:&#x2F;&#x2F;thepythoncodingbook.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;thepythoncodingbook.com&#x2F;</a>) — friendly, relaxed programming book for beginners<p>* PyFlo (<a href="https:&#x2F;&#x2F;pyflo.net&#x2F;" rel="nofollow">https:&#x2F;&#x2F;pyflo.net&#x2F;</a>) — interactive beginners guide to becoming a Python programmer<p>See my resources list <a href="https:&#x2F;&#x2F;learnbyexample.github.io&#x2F;py_resources&#x2F;" rel="nofollow">https:&#x2F;&#x2F;learnbyexample.github.io&#x2F;py_resources&#x2F;</a> for many more links
DanielKehoe12 months ago
There are a lot of people coming to Python now, even among us who already code in other languages. The first thing I noticed was a confusing variety of ways to install Python, plus a lot of necessary-but-confusing tools for version management, package management, and environment management. I wrote a guide for my mac.install.guide website about installing Python [0] and then condensed it for freeCodeCamp [1].<p>In a nutshell, I recommend installing Python with Rye [2], an all-in-one project management tool for Python, written in Rust (for speed) and inspired by Cargo, borrowing a folder-based approach to development from other languages such as JavaScript and Ruby. Other people like Pyenv&#x2F;Venv&#x2F;Pip but I think it&#x27;s easier to use a single all-in-one tool.<p>[0] &quot;Install Python&quot; (<a href="https:&#x2F;&#x2F;mac.install.guide&#x2F;python&#x2F;install" rel="nofollow">https:&#x2F;&#x2F;mac.install.guide&#x2F;python&#x2F;install</a>)<p>[1] &quot;How to Install Python on a Mac&quot; (<a href="https:&#x2F;&#x2F;www.freecodecamp.org&#x2F;news&#x2F;how-to-install-python-on-a-mac&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.freecodecamp.org&#x2F;news&#x2F;how-to-install-python-on-a...</a>)<p>[2] &quot;Rye&quot; (<a href="https:&#x2F;&#x2F;rye-up.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;rye-up.com&#x2F;</a>)
评论 #40501093 未加载
评论 #40503502 未加载
评论 #40489140 未加载
kingkongjaffa12 months ago
Python is just the tool, what you want to learn are the concepts and techniques for solving problems with computers.<p>Check out CS50x or CS50p<p>(python version)<p><a href="https:&#x2F;&#x2F;cs50.harvard.edu&#x2F;python&#x2F;2022&#x2F;" rel="nofollow">https:&#x2F;&#x2F;cs50.harvard.edu&#x2F;python&#x2F;2022&#x2F;</a>
评论 #40486322 未加载
worldsavior12 months ago
Corey Schafer has one of the best Python playlists out there. His channel at YouTube. I don&#x27;t believe any more than his channel is needed, other than Python docs.
评论 #40485680 未加载
calebjosue12 months ago
I would recommend [1].<p>It is challenging for a beginner, at the same time I remember this course (at least many years ago) having an outstanding community. No question without answer spirit.<p>They have detailed instructions on how to install Anaconda.<p>Once done with this training your young relative won&#x27;t have any issue registering and creating an account with any given AI provider and making API calls.<p>deeplearning.ai happens to have course very beginner friendly. But in My opinion a person should focus on having the aforementioned course (or CS50 [Also on edx]) under its belt.<p>[1] <a href="https:&#x2F;&#x2F;www.edx.org&#x2F;learn&#x2F;computer-science&#x2F;massachusetts-institute-of-technology-introduction-to-computer-science-and-programming-using-python" rel="nofollow">https:&#x2F;&#x2F;www.edx.org&#x2F;learn&#x2F;computer-science&#x2F;massachusetts-ins...</a>
评论 #40484181 未加载
TheAlchemist12 months ago
I&#x27;ve found this one excellent - it&#x27;s by David Beazley:<p><a href="https:&#x2F;&#x2F;dabeaz-course.github.io&#x2F;practical-python&#x2F;Notes&#x2F;Contents.html" rel="nofollow">https:&#x2F;&#x2F;dabeaz-course.github.io&#x2F;practical-python&#x2F;Notes&#x2F;Conte...</a><p>May be a bit too quick jump for a complete beginner to tech, but it&#x27;s definitely worth it.
skydhash12 months ago
<a href="https:&#x2F;&#x2F;inventwithpython.com&#x2F;pygame&#x2F;" rel="nofollow">https:&#x2F;&#x2F;inventwithpython.com&#x2F;pygame&#x2F;</a><p>I started with python’s own IDE and a few practical books. It was enough to get me started on programming. A beginner book and a python installation is all that’s required. An interesting (to her) project may be needed for motivation.
philomath_mn12 months ago
&gt; I&#x27;d recommend vscode but for lack of REPL<p>vscode has a built-in terminal?<p>But I&#x27;d separate concerns here and have her focus on writing and running basic programs to start. Choose one of the tutorial&#x2F;video recs from other comments and get her set up in Replit.<p>Let her work through the complexity of local setup _after_ she knows the basics and wants to do more.
dubyabee212 months ago
Install VScode, optimize the environment (10^10 article, google, or best are on medium), pick a topic&#x2F;app you are interested so you are more likely to keep investing, and get a sub to ChatGPT. Start with &quot;I want to build a python3 application that does {insert high-level description}. Please wait for me to describe it in detail. Do you understand&quot;. It keeps you interested combine it with more medium articles that interest you and ask ChatGPT when you don&#x27;t understand. Ultimately it&#x27;s try through creativity. If do not know what to build, tap into python projects on GITHub. Step and repeat. Never look back. If you want to learn other things like html, css, do a web app with flask or stream-lit...you will learn that too...
评论 #40480193 未加载