Press J to jump to the feed. Press question mark to learn the rest of the keyboard shortcuts

Python Education

r/learnpython

12
pinned by moderators
Posted by6 days ago
Moderator of r/learnpython
12
177 comments
146
Posted by11 hours ago

Hello. I am currently trying to develop my skills so I can make a bit of money with python. At the moment I’m learning web development and how to make RESTful APIs with flask, along with some web scraping in selenium. What in particular should I focus on after I finish learning these?

146
27 comments
25
Posted by4 hours ago

Hi all,

I went online and tried to look after good tutorials that will help me get an understanding of Big O and how to tell what is the time complexity of the code I am writing (or any other code) and so far, I noticed that either the tutorials/articles are very good and easy to read but they end at a very basic coverage of the topic or they are too complicated and defiantly requires some kind of prior knowledge.

Is there's a tutorial or course that will teach me Big O and all the topics around it, preferably with Python from the ground up?

Thanks!

25
13 comments
4
Posted by3 hours ago

Hi everyone.

I'm heading to work in a few days. I work 12 hours a day for 3 weeks so don't have much time to program, in fact I'd rather take a break from intense programming whilst at work as I pretty much program most of the day when I'm at home.

I'm a noob, halfway through my first book.

Whilst I'm away I would like though to do 10 or 20 mins a day, something that will keep the info in my head, maybe some syntax memorisation or something. Or, what would you all recommend for this? Just to keep stuff fresh or make me more fluent? Any little python games I can play that are worth the time?

I know doing 10 mins of a project would be more beneficial but I'll end up doing hours if I start and end up neglecting the gym etc. So, what would you do if you were a noob and had 10 mins or 20 mins a day to keep ur programming brain sharp, knowing you'll be back to full time real programming in a few weeks?


thanks

4
2 comments
5
Posted by5 hours ago

I'm finishing uni in 2 years and right now I feel like my interests are absolutely in Python and Networking&IT security. I've been told that penetration testing and python are a perfect pair, so I started this book, Automate the boring stuff with Python and I really enjoy it. Although I have noticed that the projects in the book are not OO, in fact it doesn't cover OO principles at all (I'm only at web scraping, so I don't know for sure, correct me if I'm wrong). So basically my question is do I need to learn to build my projects using OO principles or in the networking field it isn't neccessary?

5
9 comments
40
Posted by17 hours ago

My original post was cited as spam, so here is the brief version. The longer post is in the comments.

The Codewars problem

Brainfuck Translator - 4 kyu (codewars)

My code - 63 lines (pastebin)

My solution appears to be O(n), and can complete a million long string in about a second, but that's not fast enough for this kata. What are some ideas for how I could speed this up a little so I can pass the large input tests?

40
9 comments
2
Posted by2 hours ago

For someone who has some exposure to SQL, VBA, SAS and is familiar with loops, if statements etc, how long would it take + how easy would it be to learn Python?

Also, any suggestions for free resources to learn Python would be appreciated!

Thanks!

2
4 comments

About Community

Subreddit for posting questions and asking for general advice about your python code.
418k

Members

3.9k

Online


Created Oct 2, 2009

r/learnpython Rules

1.
Posting only the project goal is not allowed.
2.
Be polite.
3.
Read the wiki for answers to common questions.
4.
Don't ask easily searchable questions.

Code Hosting/Formatting

Post your code on these websites and include the link in your thread, or click on the button below to find out how to properly format code and include it in your submission text.

Helpful posting resources

Please check out few of these links to see how to properly ask a software development related questions.

Related Subreddits

r/Python

652,816 members

r/django

76,864 members

r/flask

47,198 members

r/programming

2,823,964 members

r/learnprogramming

1,665,195 members

r/dailyprogrammer

212,637 members

Commenting Guidelines

  • 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 Guidelines

  • 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.