r/learnpython • • Aug 29 '26

Expectations for absolute beginners

2 Upvotes

Hi all, I have maybe a hard question and definitely specific to a personal circumstance, but any perspective would be helpful.

I am a first year PhD student studying immunology, my advisor has signed me up for a stats course in the Biomedical Engineering department. Unfortunately, this class requires proficiency in R, python, or matlab, which neither my advisor nor myself new about. As my title mentions, I have zero coding experience, but recognize how important of a skill it is to have. Would it be possible to teach myself enough about python while taking the stats class concurrently? or is learning the language too tall of a task? I will definitely be reasonably busy with labwork and other commitments but can most likely allocate around an hour a day to learn, sometimes more.

Any feedback or perspective would be helpful, as I still have time to withdraw and choose a different stats course for this semester.

Thank you!


r/learnpython • • Aug 29 '26

Beginner at 31, restarting my programming journey — is my roadmap realistic for freelancing?

0 Upvotes

Hi everyone,

I’m 31 years old and I’m restarting my programming journey seriously.

I have a BTech in Computer Science, but to be honest, I haven’t built a strong professional career in software so far. I have studied programming before, but I never developed the consistency or practical experience needed to become really good at it.

I’ve now decided to change that.

My long-term goal is not to get a traditional software job or prepare for coding interviews. I want to become good enough to earn through freelancing. Eventually, I’d like to work on larger applications and higher-value projects, and perhaps move toward remote work after I’ve gained several years of experience.

What I’m doing right now

I’ve started learning Python and SQL together.

My current target is to finish the fundamentals of both by September 30, 2026. I’m learning relatively slowly because I don’t want to rush through the basics just to say that I’ve completed them.

After Python and SQL, my plan is to move toward practical development — building projects, learning the technologies required to actually deliver things for clients, and eventually starting with small freelance work.

I also want to learn AI/software development over the longer term, so I’d like my skills to eventually move in that direction as well.

Where I am currently

I’ve already studied some programming in the past, but I’m treating this almost like a fresh start because I want to make sure my fundamentals are actually solid.

Right now I’m working through Python fundamentals and SQL, practicing rather than just watching tutorials.

I’m also starting to use GitHub and want to gradually build a portfolio of projects instead of collecting courses.

What I’m unsure about

I have a roadmap that I’m following, but because I’m relatively new to the industry, I don’t know whether I’m prioritizing the right things.

I don’t want to spend the next 2–3 years learning technologies that sound impressive but aren’t actually useful for freelancing.

So I’d really appreciate advice from people who are already working as developers or freelancers.

If you were starting again today with my background and my goal of eventually making a living through freelancing:

  1. Would you change anything about this approach?
  2. What should I learn after Python and SQL?
  3. Which skills are actually valuable for getting the first freelance clients?
  4. Should I start freelancing as soon as I can build simple useful applications, or wait until I’m much more experienced?
  5. What technologies should I avoid spending too much time on as a beginner?
  6. What mistakes did you make when you started freelancing that I should avoid?
  7. At what point would you say someone is genuinely ready to start charging clients?

I’m not looking for someone to give me a complete roadmap from zero. I mainly want real-world perspective from people who have actually worked in the industry or freelanced, so I can compare that with the roadmap I’m currently following.

Thanks in advance to anyone willing to share their experience


r/learnpython • • Aug 29 '26

How do I stop forgetting Python concepts as soon as I move to the next topic?

15 Upvotes

Hello all, I am complete beginner trying to learn python for second time.

I’m giving Python another shot after quitting a while back. My first attempt failed because I fell into the tutorial loop learn a concept, do a tiny exercise, move on, forget the previous topic completely, go back to step one, repeat until burnt out.

I don't want to make that same mistake again . How do you actually learn Python efficiently so the syntax and problem-solving logic actually stick?

Would love to hear your advice, or any resource recommendations that focus on active practice over passive watching and taking notes. Thanks!


r/learnpython • • Aug 29 '26

Hexagon in arcade not loading example code

2 Upvotes

I'm using the arcade framework and would like to make a hex map game. The provided tutorial code (on this page https://api.arcade.academy/en/latest/tutorials/hex_map/index.html)does not work for import reasons and I'm wondering:

  1. Is this documentation drift (which I've already seen in other parts of the project) where code has been refactored but the examples didn't get rewritten.
  2. How do you import this part of the library to make the example code work properly
  3. How can I get a manifest of importable components of a library? This could have had it's name changed and I wouldn't know.

Any help would be appreciated.


r/learnpython • • Aug 29 '26

Cna someone please explain me this --> if __name__ == "__main__"

28 Upvotes

My teacher gave us some example and all but I didn't quite got it why we use it and how we use it : I will really appreciate if you can explain it in an easier language


r/learnpython • • Aug 29 '26

I wrote a Python script on my laptop. What actually happens next to make it run on its own?

0 Upvotes

I built a small Python script that reads a Google Sheet, sends each new row to an LLM API for a summary and a category, and writes the result back. Works fine on my laptop.

What I don't understand is everything after that. In real life it has to run without me sitting there, and I have no picture of how that works.

  • Once it's not on my laptop, where does the code live?
  • What tools do people actually use for this? I keep seeing names but I don't know what category each one belongs to or which ones I'd need together.
  • Where do API keys go?

Not asking about enterprise setups. This is one script and one sheet, small-business scale, and I want to know how people normally solve it at that size.

Background is data analysis, not development, so plain explanations are welcome.

Edit: Data lives in a Google Sheet. A Python script logs into Google as a "service account" (a robot identity created in Google Cloud Console, authenticated with a downloaded key file) and uses the Google Sheets API to read every row and the Drive API to locate the spreadsheet by name. For any row missing a summary, it sends the raw text to Anthropic's Claude API, which returns a two-line summary and a category. The script then writes that summary/category back to the sheet via the Sheets API. Need to get a summary every time someone adds a new record to Google Sheets


r/learnpython • • Aug 29 '26

Where to Continue Python After Clearing the Basics

0 Upvotes

So I have been learning python from the well-known book 'Python Crash Course', I have completed it in the past few months yet I don't know where to continue from. Is there any way I could find some online course and all. I have tried the 'Beyond the Basic with Python' and am currently also doing some problems for practice yet I need a main 'Source' to do my learning and gain in depth knowledge and broaden my knowledge and thinking capabilities. Any useful suggestions are accepted and kindly give some advice for me at this stage.


r/learnpython • • Aug 29 '26

Do I need to install Visual Studio code to run this on a Mac?

0 Upvotes

Hi all,

In short - sorry for the idiot level question but I didn't realise I could even consider this until the other week. Basically the Penalty Blog site has a Dixon Coles model in Python, I'm in a local Football Prediction pool - and it just makes sense to me to bench test this against that.

Had a long chat with Gemini to handle the specifics of the code I'd be using - but one thing it did flag was needing Microsoft Visual Studio Code to do everything I was intending on doing. I have no issue with using that but is it definitely needed on a Mac?


r/learnpython • • Aug 29 '26

Getting into python

10 Upvotes

Hi guys and girls!
I am currently new into python.
I am now on the 2nd hour of a 12 hour course that seems to be good.
Can you give me some good tips to learn it?
Maybe some coding games or fun projects🤔

Appreciate it!


r/learnpython • • Aug 29 '26

Problem with np.piecewise

0 Upvotes

Might be a bug

def get_some_func():
  a, b = ...
  flow = lambda x: ...
  fmid = lambda x: ...
  fhi = lambda x: ...
  return lambda x: np.piecewise(x, [x < a, x > b], [flow(x) , fhi(x) , fmid(x) ]

x1 = ... # some float less than a
myf = get_some_func()
>>> myf(x1)

returns fmid(x1)

is there a bug or do I overwelm np.piecewise with this?


r/learnpython • • Aug 29 '26

Looking for a genuinely free way to deploy a 3-service microservice architecture

0 Upvotes

Hey everyone,

I'm building a small portfolio project with this architecture:

Frontend
   ↓
Gateway
   ├── Interview Service
   └── RAG Service

All 3 backend services are Python/FastAPI and deployed separately.

I'm currently using Render's free tier, but I'm running into a few issues:

  • Free services spin down after inactivity → pretty bad cold starts.
  • I've also been seeing stuck on the issue 429 Too Many Requests responses at the Gateway endpoint. I'm not completely sure whether this is coming from Render's edge/platform or something in my own application.
  • The free instances also feel quite resource-constrained for the RAG service.

I'm mainly looking for something that won't make me spend more time debugging the hosting platform than actually building the project 😅

Thanks!


r/learnpython • • Aug 29 '26

How do you actually turn Python skills into freelance income?

135 Upvotes

Hello everyone, I'm currently trying to get into data science and ML, but I also dont want to just sit around waiting for a job opportunity.

I'd like to start making some money on the side through remote/online work, even if its a small amount at first. I also want to get some real experience while I'm at it.

The problem is I honestly dont know what kind of work people actually pay for when you're still at the beginner level or where I should even start looking.

A bit of what I can do right now:

  • Python
  • Machine learning
  • Data cleaning
  • EDA
  • Feature engineering
  • Model training and evaluation
  • Scikit-learn, Pandas, NumPy, XGBoost
  • SQL
  • Git/GitHub
  • General programming
  • Pretty comfortable learning new technologies quickly
  • Currently learning backend and FastAPI

I've built a couple of ML projects on my own, but I dont have professional experience yet.

So I'm wondering, how do people actually turn these kinds of skills into freelance income?

Like what kind of small jobs should I be looking for? Python automation? Data cleaning? Web scraping? Data analysis? Helping someone with an ML project? Backend stuff? Something else?

And where do you actually find these jobs? Upwork, Fiverr, Reddit, Discord, LinkedIn, cold emailing, or somewhere else?

If anyone here started freelancing with basically no experience, I'd really like to hear how you got your first client and what you actually did for them.

Also if you're already doing freelance Python/ML/data work and have any advice for someone starting from the bottom, I'm very open to learning. Even if you can point me towards something I should learn or tell me what I'm wasting my time on, that would help a lot.

I'm not expecting to make a lot of money immediately. I'm completely fine starting with small tasks and building up from there. I mainly want to get my foot in the door, make some money on the side and get real experience.

I'm based in South Asia, so remote/online work is pretty much my main option.

Would really appreciate any honest advice from people who have actually done this.

Thanks a lot.


r/learnpython • • Aug 29 '26

Why Does an Identity Comparison Using id() Evaluate to False?

11 Upvotes

I'm trying to figure out what is going on here. Could it be that the identity operator is separately checking the integer cache range and determining that the integer value returned by id() is outside the bounds of Python's integer caching, which is why it evaluates to False?

x = 256
y = 256

id(x) is id(y)
False

id(x)
94588034274160
id(y)
94588034274160

r/learnpython • • Aug 29 '26

Got Osintgram working with HikerAPI after struggling with Windows setup

1 Upvotes

I’m pretty new to this stuff and spent way too long fighting with Python/PowerShell trying to get Osintgram working.
What finally worked for me was running the repo inside GitHub Codespaces, setting up a virtual environment, installing the requirements, and then using HikerAPI for the Instagram data instead of relying on the old login method.
The basic API call looked like this:

import requests

headers = {"x-access-key": "YOUR_KEY"}

r = requests.get(
"https://api.hikerapi.com/v2/user/by/username?username=google",
headers=headers
)

print(r.json())

The x-access-key header is basically where your API token goes, and the request returns the public profile data as JSON.
The biggest thing that tripped me up was old Python package compatibility on Windows. Moving everything into a Linux Codespace made the setup way easier.
I’m still learning, so if anyone has tips for working with Python APIs or cleaning up JSON output so it’s easier to read, I’d appreciate it.


r/learnpython • • Aug 29 '26

Python y Jython son el mismo lenguaje?

0 Upvotes

En un futuro quiero saber python y c++ (IA y Robotica), por lo cual decidi empezar con python y tome un libro de la biblioteca de mi universidad, sin embargo en el libro sale que se trabajara con Jython, tengo entendido que es algo anticuado porque no soporta python 3 y ademas como esta vinculado con java y no con C me pregunto si me vendra bien.

aunque jython y python no son realmente lo mismo, lo que es el lenguaje de programacion es igual? si aprendo jython sabre programar con python?

el libro es "introduccion a la computacion y programacion con python, un enfoque multimedia (Mark J. Guzdial / Barbara ericson)"


r/learnpython • • Aug 28 '26

Me dan un consejo?, Voy empezando apenas

0 Upvotes

Hola, estoy aprendiendo a programar por mi cuenta, el primer lenguaje que tome es python y mas o menos ya se lo basico

estoy usando Vscode, y ahora mismo voy tocando lo que serian los operadores, algun consejo para algien que recien empieza??


r/learnpython • • Aug 28 '26

Brand New to Python. Tips?

3 Upvotes

Hello everyone,

I want to use Python and I know nothing about it. I am transitioning from the psychology world to data analytics/ux researcher (well that is the hope) and most jobs require knowing Python and SQL.

The most technical experience I have is I know how to use SPSS (statistics software) thanks to my disertation, excel, and I know how to analyze data from assessment measures for diagnostic and forensic evals. So brand new to this world!

I am seeing courses online and a bunch of different youtube tutorials but I am interested in hearing what has been truly helpful for others on their learning journey. So what has been helpful?


r/learnpython • • Aug 28 '26

How to make tkinter button same size as entry in a grid?

1 Upvotes

I'm trying to make a search bar entry widget with a label containing a magnifying glass emoji but can't figure out how to make the label the same height as the entry (so they look connected)?

search_bar = tk.Entry(main_frame, **big_font, **widget_theme1)
search_bar.grid(row=0, column=1, sticky='ew')
search_bar.insert(0,"Search your city")


submit_btn = tk.Button(main_frame, text=" 🔎 ", **widget_theme2, **big_font)
submit_btn.grid(row=0, column=2, sticky='ew')

(Changing width/height attributes don't fix this)


r/learnpython • • Aug 28 '26

Pyto or Pythonista 3 for iPad?

5 Upvotes

Pretty much the title.
I have an iPad M2 and I want to learn Python on the go. I see there are several on-device IDE apps and I have narrowed it down to Pyto and Pythonista 3.

Which one would you recommend? Obviously they won’t be Pycharm or similar, but I do not want to be stuck on my desktop.

I am of course open to other apps.

Thank you!


r/learnpython • • Aug 28 '26

Started MOOC 2026 Python Programming today Module 1 completed!

13 Upvotes

Yesterday I enrolled in the MOOC 2026 Python Programming course by the University of Helsinki, and I’ve already completed Module 1!

Module 1 had quite a lot of questions and exercises, so it took some time to complete, but I’m happy that I managed to finish it today. There are 7 modules in total, so I still have a lot to cover.

My goal now is to complete the remaining modules as soon as possible because the final exam is on September 5th. Hopefully, I can finish all the modules and get enough time to revise and practice before the exam.

Let’s see how far I can go in the next few days! 💪🐍

Anyone else doing the MOOC 2026 Python Programming course?


r/learnpython • • Aug 28 '26

Starting the New Journey but Confused

0 Upvotes

I'm a 4th-semester B. Tech student who started learning full-stack development at the end of my 1st semester. I've already learned JavaScript, Node.js, React, and other programming concepts, and I've built several projects. Now I want to move into AI/ML, so I need to learn Python.

Since I already understand programming fundamentals, I don't want to relearn concepts like variables, loops, functions, OOP, etc. I mainly want to learn Python's syntax, unique concepts, and Python-specific features which were not in JS. What would you recommend I learn first, what should I skip/review quickly, and are resources like Bro Code's Python, CS50 course suitable for this?


r/learnpython • • Aug 28 '26

How can I make my python project usable by other people ?

1 Upvotes

Hello everyone here. I have a small project coded in python I'd like my friends to be able to use too, but without having to send them my python file and teach them how to use it.

For context, I made an npc generator for our favorite ttrpg, because it's an useful tool and there wasn't any online already made by someone else. I can use it because I can run code on my pc, but I'd like for my friends to be able to just click a button online somewhere to generate an npc from my code.

It's a simple list and random choices based generator, no AI involved. I'm lost as to what the next logical step is to get the file on my pc out into the world. Sorry if I'm not clear, English isn't my first language. Thanks in advance !


r/learnpython • • Aug 28 '26

Is Jiki a good place to beign for python?

0 Upvotes

I'm new to coding and Python; I have some SQL knowledge but limited coding experience. I really wanted to learn, and I came across this CodeWithMosh course, which I started. It barely has any problem-solving segments and seems like a typical guy just ranting about Python.

Then I stumbled upon exercism, and through that I found Jiki. I started with it, and it seems quite interesting to me until I realised it isn't even proper Python; it's mixed with JavaScript. And again, I have no clue about coding, and I don't really know if it's the right fit or not, and I can't seem to find any proper/straightforward guidance anywhere else. What to do?


r/learnpython • • Aug 28 '26

searching for some python free courses that can really teach me smth from a complete beginner AND SEARCHING FOR MATES ON MY PATH

6 Upvotes

people please help, i’m starting my path in bachelor cybersec in a week and i want to know python a bit so i can basically understand smth, but for now looking for a community to learn python
and engaging through my path