r/learnpython • • Jul 22 '22

Is there a tool that can automatically extract information about posts on Twitter (content, likes, comments, etc) 24h after an account has posted it?

0 Upvotes

I'm working on a paper about content engagement in social media, and I stumbled uppon a serious logistic problem: the ammount of data I'd have to be constantly making notes of is humongous.

Does anybody know of any platform or simply a way to get a post "log", preferably automatically after some time has passed of someone posting it?

That'll save me a LOT of precious time.


r/learnpython • • Jan 23 '24

Am I dumb?

0 Upvotes

I started learning python 2 days ago and now I cant understand somethings like if i want to make a thousand look like this 1,000 I need to put the function like: print(f{"number:,"}). Is it normal to see it somehow complicated or am I below average iq?


r/learnpython • • Jan 20 '24

Everytime I copy and paste more than one line of code, python stops responding.

0 Upvotes

I'm trying to learn Python by taking some codes for games like Snake. I want to copy and paste the code into Python, change some things up a bit in order to learn how everything works, and then begin making my own sets of code. But everytime I copy and paste more than one line of code into, Python launches Snake, and stops responding and I'm forced to cloe it. Is there anyway around this?

Here is a link to a video showing what happens: https://youtu.be/LsoJG4LHY4A


r/learnpython • • Mar 06 '15

Is python a machine level language?

0 Upvotes

I'm still learning high-level programming languages (currently C# & Ruby) but eventually want to move to something that is more directly involved with the actual processor & memory. I've seen alot of languages that claim to be compilation code & ever-so-powerful but still need a VM or some kind of translator to actually execute (COUGH COUGH JAVA). so id like to know, would python at all be considered compilation code?


r/learnpython • • Oct 25 '23

Which movies or tv shows that are must-watch for a programmer so as to get inspiration ?

0 Upvotes

i really see movies or tv shows as a place to gain inspiration , so i think if i watch more movies i get more inspiration. previously i was inspired by Mission Impossible and now i am looking forward to see more so as to get the fuel for boosting me to be a great developer


r/learnpython • • 18d ago

How does one go about creating an adblocker using python?

0 Upvotes

I'm working on a project for uni, me and team chose to create an adblocker. As someone who's pretty new to python, where do we start? What modules do we use? Is there a list of blacklisted sites and adverts? I'd really appreciate the help.


r/learnpython • • Aug 02 '26

Recommendations for online python courses

0 Upvotes

Hi all,

I'm a fourth-year medical student and most of my research so far has been evidence synthesis (narrative and systematic reviews), so my hands-on data skills are pretty limited. I've recently gotten involved in a project involving microbiome sequencing data, and part of my role includes re-analyzing a published dataset aka working with processed count tables, doing some basic wrangling, stats, and figures. It's become obvious that I need Python.

I'd rather not pay for a course right now, so I'm hoping to find something solid on YouTube. A few things I'm looking for:

  • Starts from genuine zero (I've never written a line of code)

  • Gets to pandas / numpy / matplotlib reasonably quickly rather than spending 15 hours on OOP and building text-based games

  • Bonus if it's oriented toward biology/biomedical data, but a general data analysis course is fine, I can adapt

Specific questions:

  1. Is there a single course you'd point a complete beginner to, or is it better to do a general Python fundamentals series first and then a separate pandas/data analysis one?

  2. Anything I should avoid? I'd rather not sink 30 hours into something outdated.

  3. Realistically, how much of this do I need before I can be useful on an actual dataset vs. just learning as I go?

Appreciate any suggestions. Thanks!


r/learnpython • • Jul 17 '26

Is this bad programming?

0 Upvotes

I've been learning Python for the last few years. Curious if this one thing I do is considered poor technique. The code below is meant to find the starting index of a list, giving the first position where a condition isn't true and return None if all elements of the list meet the criteria. Let's assume that the conditional statement is simple enough that I'm not worried about it generating an error. Not sure if it's appropriate to use try/except in this way. I know it work but I don't want people making fun of me if they see it. Also, I'm sure that there's a way of doing this without needing to use the try/except but I'm just curious in general if it's wrong to use try/except as a short cut like this.

starting_index=0

try:

while not (simple conditional statement on some_list[staring_index]):

starting_index+=1

except:

return None

return starting_index


r/learnpython • • Apr 24 '26

Just started learning python

0 Upvotes

Hello Everyone,

I recently started learning Python and wanted to practice working with JSON and APIs.


r/learnpython • • Mar 27 '25

Python version

2 Upvotes

which versioni of Python are you using or considered to be the best one ?


r/learnpython • • Aug 02 '25

What do you use as your favorite IDE PYCharm or VSCode?

0 Upvotes

I know there are more but I can't try them all. Whats your favorite?


r/learnpython • • Dec 11 '22

Frustrated because I can'd do shit in this language and I have an exam in a couple of days.

0 Upvotes

I'm a web development student, and we are currently studying python as part of our school agenda.

I DON'T UNDERSTAND ANYTHING!!!

The best I can do is build a simple calculator but give me anything more complicated and my brain will literally shit itself.

For example, we were tasked to create a program that will show you however many numbers of the Fibonacci succession you tell it to show. And you might say "but u/weebmaster32, that shit's dead easy!", and you may be right, but I don't even know how to tell python to express the Fibonacci succession, let alone how to make it so it only shows as many numbers as the user tells it to.

Here's the code that I found for it in a tutorial:

number = int(input("How many numbers would you like to see?: "))n1 = 0n2 = 1print(n1)print(n2)for i in range(number):

# Where the fuck does the "i" come from, and what does it do? What is the range and why are we looking for a "range" inside the number variable?

n3 = n1 + n2print(n3)    n1 = n2    n2 = n3

Here's another task we were given: "Create a program that requests the user to input an email adress, and checks whether the format of said adress is valid or not. (We all know what most email adresses look like)"

Here's the code that either one of my classmates, or my teacher wrote (i don't remember who did it):

posAt = 0validEmail = Falsewhile not validEmail:

#Why say while "not" validEmail?    mail = input("Type a valid email adress: ")

if mail.find("@") > 0:        posAt = mail.find("@")if mail.find(".") < len(mail) -1 and mail.find(".") > posAt and (mail.find('@') - mail.find(".")) > 1:            validEmail = True#by the way, this whole last section of code is like gibberish to me

if not validEmail:print(mail + " IS NOT a valid email adress")else:print(mail + " IS a valid email adress")

I hope someone here is able to tell me of a good way to understand it because all I've managed to do for the past week is waste time and get frustrated, while most of my classmates got it during the first day.


r/learnpython • • Feb 05 '26

Python learning

2 Upvotes

I want to learn python from scratch so kindly help me.


r/learnpython • • Jan 31 '25

Best package for deploying to Github

2 Upvotes

Hi everyone,

I did a bit of Python for my data science course many years ago, so would like to continue using it over HTML/Javascript/Angular JS which I know nothing about.

I am hoping to create a text based game and deploy it on to Github. Note that I want to deploy it, not upload code for others to download and run locally. I want it accessible over a URL.

What options do I have? I heard that if I build it into Pycharm then it becomes possible? I am happy to learn a new package just for this, so would like some advice on what I should focus on learning.

Thanks!

21/08/2025 -
7 months later, I have it all figured out. Life caught up with me hence the late update. Everyone here told me it was impossible, but, well, they are wrong. I have no doubt of their technical skills, but without a genuine interest in helping those skills are meaningless. The world as they know it is confined to what they have seen before, and they refuse to entertain the possibility of things existing outside of it. Being unheard of means you haven't come across it yet, not it is impossible. As it turns out, it is relatively straightforward. I leave the answer here for posterity, in the hope that I might help some other fellow rookie programmer with a similar passion.

Learn pygame, use pygbag to compile it, then upload to Github pages. You can make much more than a text-based game and deploy it to the internet for free using this method.
https://pygame-web.github.io/wiki/pygbag/


r/learnpython • • Jan 05 '24

I can't seem to code properly.

2 Upvotes

Hey everyone.

I started learning Python from yesterday itself, and it's very intriguing. I've pulled all nighters to watch MIT lectures and Corey Schnafer. As of now, I can safely say I understand how to work with strings, numbers, tuples, and lists. That to a slightly basic extent. Today, I decided to go a bit adventurous and tried learning to code a Tic-Tac-Toe. Didn't work. Looked up code online - I barely understand any of it.

I know you may think, "This guy is a laugh! He's running before he could walk!" Thing is, things seemingly come natural to me, especially Mathematics. And, programming languages such as these are very mathematically-oriented. So, I felt a bit disheartened.

I scrolled on this subreddit and found that many people watch lectures and read books, but when it comes to the coding aspect of it, they frazzle. They don't know what to do. I want to prevent that. But how? I don't want to code print("Hello World!") forever. Any advice? Any tips? If you could share your personal anecdotes, please do. Apparently, there is some imitation culture where you can copy other people's codes and tweak it a bit. Is that ethical ?

Also, once I finish learning the basics and experimenting and coding up basic projects, I plan on learning pandas and mathplotlib (I am interested in Data Science) and some Django.


r/learnpython • • Aug 29 '24

Where to start learning Python

14 Upvotes

HI! I want to start learning python, but I don't know where to start, maybe there will be some tips, videos, guides


r/learnpython • • Jul 24 '25

What are the most important things to learn as a programmer besides just the language?

0 Upvotes

I’ve been coding for a while and realized that knowing a programming language isn’t enough to become a truly effective developer.

I’m curious — what are the most valuable tools, practices, or skills you’ve learned that made a real difference in how you work?

  • And now, AI tools like GitHub Copilot, ChatGPT, Tabnine — how are you actually using them in your workflow?

I want to hear your stories:

  • What non-language skill helped you level up?

  • What tool or habit do you wish you learned earlier?

  • Any underrated tech or practice others should know about?

Whether you’re just starting out or have years of experience — I’d love your take. Drop your favorite tools, tips, or lessons below!


r/learnpython • • Sep 26 '26

Windows 7 python

0 Upvotes

I only have a windows 7 and i just want to make sure which version of python is the latest for this windows, i heard its the 3.8 but idk which one exactly for sure and i would appreciate an answer


r/learnpython • • Oct 27 '24

how do i get rid of square brackets within a list?

1 Upvotes

Fellow redditors

how can i get rid of the brackets within a list?

for ex the brackets around the dates: [['19 April 1882'], ['23 April 1616'], ['23 April 1616'], ['15 April 1865']]?


r/learnpython • • Feb 11 '25

I think positional-only and keyword-only arguments syntax sucks

1 Upvotes

This is my mini rant, please don't take it super seriously.

I don't quite understand it why people who develop the Python language feel the urge to make it more and more complex, adding features nobody asked for. Someone can say "but you don't need to use them". Well, sure, but I need to have them sometimes when I work on a project with other devs.

One of the best examples is the positional-only and keyword-only syntax. I love it that Python supports keyword arguments, but forcing to use them seems like something nobody really needs. And positional-only even more so.

But now, I'm gonna talk about the syntax itself:

def my_func(a, b, /, c, d, *, e, f):
    # a and b are now positional-only
    # c and d are whatever we want
    # e and f are keyword-only
    pass

It takes quite a bit of mental power to acknowledge which arguments are what. I think it would really be better if each parameter was marked appropriately, while the interpreter would make sure that positional-only are always before keyword-only etc. Let's use ^ for positional-only and $ for keyword-only as an example idea:

def my_func(^a, ^b, c, d, $e, $f):
    # a and b are now positional-only
    # c and d are whatever we want
    # e and f are keyword-only
    pass

This is way more readable in my opinion than the / and * syntax.


r/learnpython • • Oct 20 '24

Please tell me good resources for creating api in python

1 Upvotes

As title suggests, please tell me good resources for creating api in python


r/learnpython • • Jun 13 '24

Can I learn python on Intel Core i3 2100 2nd generation?

1 Upvotes

I have a old pc having the following specs: Intel Core i3 2100 2nd generation (3.1 GHz) 4gb ram Graphic Card : 1GB (AMD Radeon HD 6450) 750gb hdd 500gb ssd So can I learn python on this pc? I want to learn python as it it is a good skill to have. I want to learn it as a hobby.


r/learnpython • • Feb 08 '24

Why isn't there a "export" keyword or something similar in python?

1 Upvotes

I come from a javascript/typescript environment and PYTHON seems so fking difficult with all those "shortcuts" that are there to make things easier, I hate js for what it is but the one thing that I like about is it's package management system, WHY ARE THERE SOO MANY WAYS OF CREATING VIRTUAL ENVIRONMENTS? And after that the import and export of a file or function invokes the function automatically

In js I can do

import 'script' //If I want to invoke it as soon as I import it

import script from 'script' //If I want to use the functions inside the script

import {fun1, fun2} from 'script'// If i want to import specific functions

That being said can someone explain me the init.py file and , is it necessary to nest all the functions under a main (could be any name ) function and then do

if __name__ == "__main__":
    main()

If I want to export all the functions within the file.

And is there any difference between

from .config import config
#and
from config import config

if I have two files 'config.py' and 'main.py' in a folder


r/learnpython • • Feb 21 '24

HOW TO READ A PYTHON CODE ON REPEAT PLEASE

1 Upvotes

Hello i am a 14 years old python big noob and i am trying to do my first ever project, i need help for completing iT

import random

value = random.randint(0, 1000)

guess = int(input("What is your first guess ? "))

if value <= guess:

print("Its Less")

if value >= guess:

print("its More")

if value == guess:

print("Correct !!")

so i want to make this guess the number little game but my problem is that every time the guess is not right i have to restart manually the whole program and it looses my guess + changes the value so its basically impossible. Please i want to know how to just read it on repeat without loosing my guess nor the value.