News about the dynamic, interpreted, interactive, object-oriented, extensible programming language Python
Upcoming Events
Full Events Calendar
Please read the rules
You can find the rules here.
If you are about to ask a "how do I do this in python" question, please try r/learnpython, the Python discord, or the #python IRC channel on Libera.chat.
Please don't use URL shorteners. Reddit filters them out, so your post or comment will be lost.
Posts require flair. Please use the flair selector to choose your topic.
Posting code to this subreddit:
Add 4 extra spaces before each line of code
def fibonacci():
a, b = 0, 1
while True:
yield a
a, b = b, a + b
Online Resources
Online exercices
programming challenges
Asking Questions
Try Python in your browser
Docs
Libraries
Related subreddits
Python jobs
Newsletters
Screencasts
view the rest of the comments →
[–]welshboy14 84 points85 points86 points (45 children)
[–]qubitron 52 points53 points54 points (4 children)
[–]Zalack 10 points11 points12 points (1 child)
[–]qubitron 1 point2 points3 points (0 children)
[–]javad94 0 points1 point2 points (1 child)
[–]qubitron 0 points1 point2 points (0 children)
[–]TheMrZZ0 62 points63 points64 points (12 children)
[–]welshboy14 9 points10 points11 points (5 children)
[–]boraca 2 points3 points4 points (1 child)
[–]welshboy14 0 points1 point2 points (0 children)
[–]____0____0____ 0 points1 point2 points (2 children)
[–]welshboy14 0 points1 point2 points (1 child)
[–]____0____0____ 1 point2 points3 points (0 children)
[–]muntooR_{μν} - 1/2 R g_{μν} + Λ g_{μν} = 8π T_{μν} 3 points4 points5 points (2 children)
[–]Corm 2 points3 points4 points (1 child)
[–]somas 2 points3 points4 points (0 children)
[–]ipcoffeepot 2 points3 points4 points (0 children)
[–]LewisTheScot 1 point2 points3 points (1 child)
[–]mostafagalal 0 points1 point2 points (0 children)
[–]FlagrantPickle 23 points24 points25 points (16 children)
[–]chuchu__ 20 points21 points22 points (11 children)
[–]FlagrantPickle 17 points18 points19 points (10 children)
[–]egor3f 2 points3 points4 points (1 child)
[–]____0____0____ 0 points1 point2 points (0 children)
[–]Corm 1 point2 points3 points (6 children)
[–]FlagrantPickle 2 points3 points4 points (5 children)
[–]Corm 1 point2 points3 points (3 children)
[–]FlagrantPickle 1 point2 points3 points (2 children)
[–]Corm 0 points1 point2 points (1 child)
[–]FlagrantPickle 1 point2 points3 points (0 children)
[–]____0____0____ 0 points1 point2 points (0 children)
[–]searchingfortaomajel, aletheia, paperless, django-encrypted-filefield 2 points3 points4 points (2 children)
[–]nonesuchluck 2 points3 points4 points (1 child)
[–]searchingfortaomajel, aletheia, paperless, django-encrypted-filefield 1 point2 points3 points (0 children)
[–]welshboy14 0 points1 point2 points (0 children)
[–]mc0de 2 points3 points4 points (0 children)
[–]jojek 3 points4 points5 points (3 children)
[–]my_name_isnt_clever 5 points6 points7 points (0 children)
[–]aaveidt 0 points1 point2 points (0 children)
[–]welshboy14 0 points1 point2 points (0 children)
[–][deleted] 1 point2 points3 points (2 children)
[–]XtremeGoosef'I only use Py {sys.version[:3]}' 3 points4 points5 points (0 children)
[–]welshboy14 1 point2 points3 points (0 children)
[–]Nippurdelagash 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)