jump to content
my subreddits
edit subscriptions
  • popular
  • -all
  • -random
 | 
  • AskReddit
  • -funny
  • -todayilearned
  • -pics
  • -worldnews
  • -videos
  • -aww
  • -gifs
  • -gaming
  • -movies
  • -news
  • -Showerthoughts
  • -IAmA
  • -mildlyinteresting
  • -Jokes
  • -television
  • -nottheonion
  • -LifeProTips
  • -personalfinance
  • -photoshopbattles
  • -OldSchoolCool
  • -space
  • -sports
  • -food
  • -Futurology
  • -Documentaries
  • -Music
  • -UpliftingNews
  • -tifu
  • -TwoXChromosomes
  • -explainlikeimfive
  • -GetMotivated
  • -askscience
  • -dataisbeautiful
  • -WritingPrompts
  • -Art
  • -books
  • -EarthPorn
  • -history
  • -science
  • -gadgets
  • -DIY
  • -nosleep
  • -creepy
  • -listentothis
  • -philosophy
  • -InternetIsBeautiful
  • -blog
  • -announcements
more »
learnpython learnpython
  • hot
  • new
  • rising
  • controversial
  • top
  • gilded
  • wiki
  • promoted
Want to join? Log in or sign up in seconds.|
  • English

use the following search parameters to narrow your results:

subreddit:subreddit
find submissions in "subreddit"
author:username
find submissions by "username"
site:example.com
find submissions from "example.com"
url:text
search for "text" in url
selftext:text
search for "text" in self post contents
self:yes (or self:no)
include (or exclude) self posts
nsfw:yes (or nsfw:no)
include (or exclude) results marked as NSFW

e.g. subreddit:aww site:imgur.com dog

see the search faq for details.

advanced search: by author, subreddit...

reset password
Submit a new text post

learnpython

subscribeunsubscribe84,524 readers

420 users here now

Welcome to /r/LearnPython!

Please read the rules and guidelines below and search before posting.


Learning resources

All learning resources are in the wiki: /r/learnpython/w/index

Frequently Asked Questions: /r/learnpython/w/FAQ


IRC Chat

Join us in the IRC channel: ##learnpython on irc.freenode.net

Webchat link: webchat.freenode.net

Guide on how to join and different IRC clients: /wiki/IRC


Rules

General Rules

  • Posting only assignment/project goal is not allowed. Read posting guidelines.

  • Easily googleable questions are not allowed.

  • Posting screenshot of the code is (generally) not allowed. Read posting guidelines.

  • Insulting will not be tolerated.

  • Reddit rules These apply also on this subreddit.

  • Breaking these rules may result in post removal and/or ban from this subreddit.

Guidelines

Commenting

  • Try to guide OP to a solution instead of providing one directly.

  • Provide links to related resources.

  • Answer the question and highlight side-issues if any exist.

  • Don't "answer and run", be prepared to respond to follow up questions.

  • Proofread your answers for clarity and correctness.

  • Be polite.

Posting

  • Try out suggestions you get and report back.

  • SSCCE Keep your code Short, Self Contained, Correct (Compilable) and provide Example

  • Include the error you get when running the code, if there is one.

  • Ensure your example is correct. Either the example compiles cleanly, or causes the exact error message about which you want help.

  • Avoid posting a lot of code in your posts.

  • Posting homework assignments is not prohibited if you show that you tried to solve it yourself.

Posting resources

  • What Have You Tried (.com)

  • How to ask a software question

  • Writing the perfect question

Code hosting

  • Github gist

  • Pastebin

Related subreddits

Python related

  • /r/python

  • /r/flask

  • /r/django

  • /r/pygame

General

  • /r/programming

  • /r/learnprogramming

  • /r/dailyprogrammer


If you have any questions/suggestions please message the moderators:

Message the moderators

Subreddit CSS and other assets can be found on github here:

Subreddit assets

created by HattoriHanzoa community for 7 years
message the moderators

MODERATORS

  • wub_wubNikola-K
  • AutoModerator
  • zahlmanzahlman
  • xiongchiamiovxiongchiamiov
  • about moderation team »

subscribe to our newsletter

_('thanks for subscribing')

get the best of reddit, delivered once a week


×

6
7
8

Ask Anything Monday - Weekly Thread (self.learnpython)

submitted 2 days ago by AutoModerator[M] - announcement

  • 48 comments
  • share
loading...

1
41
42
43

Been Trying for four years, Finally some light at the end of the tunnel. (self.learnpython)

submitted 5 hours ago * by Stanulilic

  • 9 comments
  • share
loading...

2
•
•
•

Python Study Group on slack (self.learnpython)

submitted 1 hour ago by iakovosbeloniasBelonias

  • 1 comment
  • share
loading...

3
6
7
8

How do I take my python skills to a more practical sense? (self.learnpython)

submitted 4 hours ago by Bruhtowski

  • 10 comments
  • share
loading...

4
3
4
5

FAQ via natural language (self.learnpython)

submitted 5 hours ago by gianx

  • 2 comments
  • share
loading...

5
•
•
•

Twitter Markov Chain Bot (self.learnpython)

submitted 6 minutes ago by moldyxorange

  • 1 comment
  • share
loading...

6
2
3
4

python says no such file or directory to open? (self.learnpython)

submitted 3 hours ago by Aman1996

  • 2 comments
  • share
loading...

7
2
3
4

Should you always use if __name__ == __main__? (self.learnpython)

submitted 3 hours ago by D1-R2

  • 4 comments
  • share
loading...

8
1
2
3

Use Python to record and save audio files from microphone at certain intervals? (self.learnpython)

submitted 2 hours ago by cuginhamer

  • comment
  • share
loading...

9
11
12
13

How can I skip the first element of a for loop? (self.learnpython)

submitted 11 hours ago by ScaryBoo1998

  • 17 comments
  • share
loading...

10
5
6
7

double posting in learningprogramming section, I'm looking for python problem set I can download and print, anyone knows where? (self.learnpython)

submitted 8 hours ago by youngswalala

  • 1 comment
  • share
loading...

11
1
2
3

Mishap while scraping html page and converting to DataFrame (self.learnpython)

submitted 3 hours ago * by geoffrey007

  • 1 comment
  • share
loading...

12
1
2
3

xpaths return empty lists (self.learnpython)

submitted 3 hours ago * by _Link404_

  • 1 comment
  • share
loading...

13
•
•
•

I hope this helps! (self.learnpython)

submitted 1 minute ago by arjunkocher

  • comment
  • share
loading...

14
•
•
•

I built a twitter bot, could someone help me with refactoring it? (self.learnpython)

submitted just now by Clientelecocophone

  • comment
  • share
loading...

15
1
2
3

best way to split a list into sublists? (self.learnpython)

submitted 4 hours ago * by apriorisynthesizer

  • 8 comments
  • share
loading...

16
•
•
•

I am making a reddit bot and I want it to delete any of its comments made that have a score below 0. No clue how to. (self.learnpython)

submitted 24 minutes ago * by CentipedeBot01

  • 3 comments
  • share
loading...

17
•
•
•

[Python3] A little help with the beginnign of my program would be appreciated (self.learnpython)

submitted 42 minutes ago * by plaweur

  • comment
  • share
loading...

18
4
5
6

Any tutorials for sqllite3, or something similar that is very simple to use? Looking to create flair bot, but need to store submission and comment id's. (self.learnpython)

submitted 8 hours ago by John_Yuki

  • 9 comments
  • share
loading...

19
1
2
3

Binning deltatime array (self.learnpython)

submitted 4 hours ago by fatalflaw123

  • 5 comments
  • share
loading...

20
1
2
3

Re: lists (self.learnpython)

submitted 4 hours ago * by greenleafvolatile

  • 6 comments
  • share
loading...

21
1
2
3

I'm trying to fade the background color of a window I created using tkinter. I'm trying to steadily change the background color from white to dark grey over a series of 0.1s intervals. Could anyone help? (self.learnpython)

submitted 4 hours ago by three_two_one_go

  • 3 comments
  • share
loading...

22
•
•
•

Is it possible to do the exercises in ATBS past chapter 10 on a chromebook and not download anything? (self.learnpython)

submitted 1 hour ago by castizo

  • 5 comments
  • share
loading...

23
1
2
3

Having trouble running a Python script as a Windows service (self.learnpython)

submitted 5 hours ago by grizzlyC

  • 3 comments
  • share
loading...

24
•
•
•

Help making the sum of values from a dictionary (self.learnpython)

submitted 1 hour ago by Quairus

  • 3 comments
  • share
loading...

25
1
2
3

Print for loop with flask framework (self.learnpython)

submitted 5 hours ago by slk14k

  • 4 comments
  • share
loading...
view more: next ›
  • about
  • blog
  • about
  • source code
  • advertise
  • careers
  • help
  • site rules
  • FAQ
  • wiki
  • reddiquette
  • mod guidelines
  • contact us
  • apps & tools
  • Reddit for iPhone
  • Reddit for Android
  • mobile website
  • buttons
  • <3
  • reddit gold
  • redditgifts

Use of this site constitutes acceptance of our User Agreement and Privacy Policy. © 2017 reddit inc. All rights reserved.

REDDIT and the ALIEN Logo are registered trademarks of reddit inc.

π Rendered by PID 52333 on app-399 at 2017-07-19 18:44:02.169599+00:00 running 6d8dc23 country code: US.