Thanks to visit codestin.com
Credit goes to github.com

Skip to content

My coworkers often ask me for Python learning resources. Here are some picks. Many skill levels, emphasis on beginner and intermediate.

License

Notifications You must be signed in to change notification settings

chandoo1986/python-is-for-lovers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Get the Hang of Python

Hi! You're a beginner or intermediate, or even advanced. You want to learn mroe Python. There's so much out there: do not fret. This is a curated list of resources. I've picked and chosen. And you should go ahead and pick and choose further :)

I agree with Learn Ruby the Hard Way that the "hard way" — learning by doing — diving right in — is actually the easy way. So no matter your background, newbie programmer or advanced Pythonista, take a look and learn something new.

Starters

The first key is Don't Panic. You can learn most by hacking.

If you have not installed Python yet, you need to pick a version of Python and then install. For both of these subjects, you should read Hitchhiker's Guide to Python

It's also a good idea to debunk the myths you may have heard about Python.

Python community

If nobody’s told you yet, Python’s community is one of the most important things about it :) Join forums, subreddits (/r/Python, /r/learnpython), chats (Slacks or IRCs) local meetups, etc., and get support. You’ll learn much better with a community.

Cheat sheets/quickstarts

Keep these handy.

Courses and books

If you like self-guided courses, try one of these:

If you like taking online courses with a group, I’ve heard this one is good:

A good IDE will help you be more productive!

A lot of people think when you're first learning a language like Python, you'll grok it best if you use a basic text editor instead of an IDE. Still, maybe you are just here to learn a little Python for some projects at work, and you just need to get some things done. An IDE might help you.

  • I strongly prefer JetBrains PyCharm. So do most people at my company now. And many many people the world over … PyCharm does incredible things with your Python code.
  • There's a free Community Edition you can use immediately. We have Professional Edition licenses, so get your hands on one of those as soon as you can!
  • (BY THE WAY, I’ve been down the path of highly customizable text editors (emacs, then vim, then Sublime Text in vim mode). I hate Eclipse and many other IDEs. Yet, I strongly recommend you check out PyCharm please. If you give it a try for a few weeks, you might just stick with it.)
  • (AND ON ANOTHER SIDE NOTE, vim keybindings are awesome, and http://vim-adventures.com/ is a great way to learn if you wanna. But just because you like vim keybindings doesn’t mean you’re stuck with vim or stuck with Sublime Text. Turns out PyCharm has some of the best vim emulation on the market. (This is also true of IntelliJ and all other JetBrains IDEs))

Interactive tools for understanding Python better

Please try at least one of these out. Interactive tools can really deepen your understanding and accelerate your learning. A huge strength of Python is its interactivity ... Use it!

Scenario guide

You're probably going to use libraries to do a lot of things. When you have a new scenario and you are thinking what should I use... You should:

  1. Ask your community :D
  2. check Hitchhiker's Guide to Python: Scenario Guide for Python Applications
  3. check Full Stack Python, another comprehensive but carefully curated guide, full of useful context, advice, etc.
  4. check Awesome Python, "A curated list of awesome Python frameworks, libraries, software and resources" — or the Pythonidae list

Avoiding common mistakes and pitfalls

Free book (PDF): How to make mistakes in Python

Testing

One of Python's biggest strengths is its testability. Test-Driven Development and Python go together happily.

  1. start with this concise post, http://docs.python-guide.org/en/latest/writing/tests/#the-basics
  2. then try this comprehensive post. It's about unit testing with Python's Standard Library unit test package, but leads you up to introducing pytest — the best runner for any kind of tests (you can get started on that right away). It’s also the best framework for writing data-driven tests, when you’re ready to get gung-ho about testing your code :D
  3. https://www.jeffknupp.com/blog/2013/12/09/improve-your-python-understanding-unit-testing/
  4. When you’re ready, move onto pytest, definitely :) pytest.md

For intermediate and advanced Pythonistas

Are you intermediate or advanced? If you're not sure, one way to check:

Style guides

You don’t need to read style guides until you’re beyond beginner status. At some point that will become very valuable and helpful to you :)

  • There are two main style guides:
  1. The Hitchhiker's Guide to Python – opinionated guide by the legendary Kenneth Reitz of requests fame
  2. Google Python Style Guide – perhaps the most widely-used Python style guide

Special topics

Fast and scalable Python

Concurrency

For completely out-of-the-box Python, concurrency is slightly complicated (because of the GIL). However, it's not some no-man's-land or something. You don't need to rediscover the solution on your own. The best single summary I've seen of (preferred) concurrency options –

Myth: Python Lacks Concurrency

but also, is concurrency exactly what you want? Maybe it is, but maybe a worker-and-queue option is more like what you want...

Parallelism/ distributed task queue

For Python projects that need some horizontal scale-out and fast performance, there's a good chance a worker-and-queue setup might work better for you, compared with single-computer concurrency. There's no question: Celery is the way to go for worker-and-queue systems in Python --

Celery

Map/Reduce and beyond (Functional Reactive Programming)

Or maybe not worker-and-queue. I've maintained some pretty iffy worker-and-queue systems. These days I reach for Apache Spark instead. Batch and stream processing.

About

My coworkers often ask me for Python learning resources. Here are some picks. Many skill levels, emphasis on beginner and intermediate.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published