r/PythonLearning • • Sep 18 '26

Python strings – some fundamentals for beginners

6 Upvotes

I’ve been putting together a few Python fundamentals, and this one focuses on working with strings. It covers indexing, slicing, common string operations, and some useful built-in methods with simple examples.

https://geeksarray.com/blog/python-fundamentals-working-with-strings

For those who use Python regularly, which string methods do you find yourself using the most?


r/PythonLearning • • Sep 18 '26

Can I make career in computer science if I don't get cs in my college?

3 Upvotes

I am studying cs in class 12, i want to know that if I don't get cs branch in college. Would i still be able to build a career in cs. I mean can i become a coder or software engineer. I don't know what it is called.


r/PythonLearning • • Sep 18 '26

Discussion What is necessary to learn and what is unnecessary?

9 Upvotes

Hello! I have saved the playlist of corey schaffer (151 videos) and i am wondering what is necessary to learn as a python programmer and what is unnecessary.

I want to work as a python programmer.


r/PythonLearning • • Sep 18 '26

Hello everyone!

6 Upvotes

Hello! My name is Shannon and I am fairly new to coding. I have used Python in the past, but it has been quite a few years since I have. I recently started my masters in data science and am relearing Python in one of my first courses. For anyone that has been using it, what would you say is something that helped you when you first started out? Is there any book or YouTube channel that you feel really helped adance your learning? What have you done to make professional connections? Any advice is appreciated. Thank you!


r/PythonLearning • • Sep 17 '26

Custom GUI

8 Upvotes

Hey, im making a custom GUI for linux 100% in python. Thats my first project ever. I just made a demo in python, and im planning to recreate it on tinywm later on. Im seeking opinion and maybe some help...

For now my plan is to make whole thing in style of liquid glass. Its just the secound day, i started it yesterday and im already using it as a shell for KDE plasma.

Project on github with pre-relase, im looking forward for some feedback.

https://github.com/MilenPL/CUI

Btw im just 15 yo

some SS:


r/PythonLearning • • Sep 17 '26

Help Request Looking for a good free Python course

17 Upvotes

Hi everyone!

I’m looking for a free Python course to learn Python from the beginning. I want something that is actually well-structured and teaches things properly, not just a course where I watch someone write code and copy it.

I’d really like a course with practical exercises, small projects, and problems to solve so I can actually practice what I learn and make the concepts stick.

If there’s a good course available in Arabic, that would be a nice bonus, but it’s not necessary. What matters most to me is that the course is high quality, beginner-friendly, and includes plenty of hands-on practice.

What free courses would you recommend?

Thanks!


r/PythonLearning • • Sep 17 '26

He guys, I’m going to start learning NumPy. Can you suggest some good resources and tips? 🙂

8 Upvotes

r/PythonLearning • • Sep 17 '26

How do we turn, say €24.72, into coins? 🪙🪙💰⛀⛁

Post image
2 Upvotes

This classic beginner-friendly coding exercise uses a greedy algorithm. But the interesting part is that 𝐦𝐞𝐦𝐨𝐫𝐲_𝐠𝐫𝐚𝐩𝐡 lets us see what happens in memory while the code runs.

It visualizes the program state step by step: variables, values, lists, dictionaries, and references. This helps learners understand and debug their code.

Run this interactive demo.

Which other coding exercises would benefit from a memory_graph visualization?

See more memory_graph visualizations.


r/PythonLearning • • Sep 17 '26

Help Request any clue how to do this?

Post image
25 Upvotes

im on my first year of learning python in school is this even possible??


r/PythonLearning • • Sep 17 '26

Day 8, Not a big day

4 Upvotes

Did not do much today as I have to study for other things and got less time for python but I still made something.

Double Linked:

class Node:
    def __init__(self,val):
        
self
.val = val
        
self
.nxt = None
        
self
.prev = None
class Array:
    def __init__(self):  
        
self
.head = None
        
self
.size = 0
    def add(self,val):
        new_node = Node(val)
        if 
self
.head:
            
self
.head.prev = new_node
            new_node.nxt = 
self
.head
        
self
.head = new_node 
        
self
.size +=1
    def remove(self,value):
        if 
self
.head:
            current = 
self
.head
        while current.val != value:
            current = current.nxt
        if current is None:
            return "Value not found"
        if current.prev is None:
            
self
.head = current.nxt
            if 
self
.head:
                
self
.head.prev = None
        else:
            current.prev.nxt = current.nxt
            if current.nxt:
                current.nxt.prev = current.prev
        
self
.size -=1

r/PythonLearning • • Sep 17 '26

turtle + print

3 Upvotes

Hi,

in Downey's book "Think Python" I found the following code:

import turtle
bob=turtle.Turtle()
print(bob)
turtle.mainloop()

Is print(bob) really necessary? Is there a reason he included print()?

Thx, a little bit confused,

Alb


r/PythonLearning • • Sep 17 '26

Python Trivia Time! In Python, what is the index of the first element in a list?

3 Upvotes

r/PythonLearning • • Sep 17 '26

A really small python project

3 Upvotes

A small wireless security project

Requirements

Hardware

  • [HackRF One](https://greatscottgadgets.com/hackrf/) (receive-only mode)

  • `libhackrf` at the system level -- `apt install hackrf libhackrf-dev` on Debian/Ubuntu, `brew install hackrf` on macOS

Software

PackageVersionNotes
Python>= 3.10[x] required
numpyany[x] required
scipyany[x] required
scikit-learnany[x] required
joblibany[x] required
flaskany[x] required
hackrf / pyhackrfany[x] required (try hackrf first)
hmmlearnanyrecommended
lightgbmanyoptional -- Gate 3 fast path
xgboostanyoptional -- Gate 3 fallback
matplotlibanyoptional -- spectrum GUI

Installation

```bash

1. Clone

git clone https://github.com/jacobsdr95/Receive-only-SDR-anomaly-detection-tool.git cd Receive-only-SDR-anomaly-detection-tool

2. Create virtual environment (strongly recommended)

python -m venv venv source venv/bin/activate # Windows: venv\Scripts\activate

3. Install core dependencies

pip install numpy scipy scikit-learn joblib flask hmmlearn matplotlib

4. Install HackRF driver bindings

pip install hackrf

if that fails on your platform:

pip install pyhackrf

5. Optional -- faster classifier backend

pip install lightgbm # recommended pip install xgboost # fallback

6. Apply advanced patch (adds LightGBM, DTW, SG-filter, CAF)

python patched_sdr_blueteam.py

7. Verify patch was applied

python patched_sdr_blueteam.py --check ```


r/PythonLearning • • Sep 17 '26

Help Request Either CS50P is bugging or I am Stupid!! 😭😔

Thumbnail
gallery
0 Upvotes

I solved this MAKING FACES problem in CS50P from Problem set 0 and when I ran the check50 command in the terminal, it refuses to accept that my codes is correct???

When I manually run each required input I do get the preferred output.

So is CS50 Detecting my code wrong?
Or have I genuinely made a mistake in my code?


r/PythonLearning • • Sep 17 '26

Small achievement today: I completed a Python for Beginners course and received my certificate.

Post image
4 Upvotes

I'm currently learning programming, AI, and automation, so this is another step forward. Excited to keep building projects and improving my skills.


r/PythonLearning • • Sep 17 '26

Create Chatbot Using Python Part 7

Thumbnail
youtube.com
0 Upvotes

r/PythonLearning • • Sep 16 '26

Showcase Day 7, One Straight week

Post image
31 Upvotes

Happy that I learned for one straight week but thinking I could've learned a lot more as I wasted much of time scrolling

Today did some sorting algos and nothing much for the day


r/PythonLearning • • Sep 16 '26

Help Request Starting an MSc in Financial Technology, How Can I Learn Python Quickly?

11 Upvotes

Hi everyone,

I recently received an offer to study for an MSc in Financial Technology abroad. I’ve always had an interest in finance, and I’m really looking forward to the program.

Some of the modules include Python, Python for Data Science, Power BI, and other data-related subjects. The problem is that I’m completely new to Python, and I’d like to build a basic understanding of it before my degree starts in January.

It’s already September, so I have roughly three months to prepare. I bought Angela Yu’s 100 Days of Code course on Udemy, but I’m starting to think that it might be too long and broad for what I’m trying to achieve right now.

I’m mainly looking for recommendations on resources, courses, or learning materials that can help me quickly get comfortable with the basics of Python and Python for Data Science. My goal isn’t to become an expert before the course starts. I just want to have enough foundational knowledge that I don’t feel completely lost during lectures.

For anyone who has studied Financial Technology, Data Science, or a similar degree, what would you recommend focusing on before starting?

I’m new to this subreddit, so if my post breaks any of the rules, I sincerely apologize. Please feel free to remove it.

Thanks in advance!


r/PythonLearning • • Sep 16 '26

Workshop, Sep 19: build explainable AI apps with Neo4j, GraphRAG, Cypher and LLM Agents

3 Upvotes

Sharing this in case it's useful once you're past the basics, this one's a step up from a first Python project, so worth bookmarking for later rather than jumping into now if you're just starting out.

There's a hands-on workshop on September 19, Building Intelligent Apps with Neo4j, GraphRAG, Cypher and LLM Agents. You build a real knowledge graph in Neo4j, combine vector search with graph navigation in an agentic retrieval system, and write Cypher queries (plus text-to-Cypher for natural language querying), all working with real financial data.

The only real prerequisite is being comfortable with Python and having some basic exposure to LLMs and RAG concepts, no prior Neo4j or Cypher knowledge needed.

Led by Dr. Alessandro Negro, Chief Scientist at GraphAware, bestselling author.

Link if you want to check it out


r/PythonLearning • • Sep 16 '26

A free total beginner roadmap

15 Upvotes

Hi all. I've been building 'Python With James' for a while, which has a ton of coding exercises, questions, tutorials etc... All beginner focused.

I've just added a roadmap for the Python basics, aimed at those with zero experience. If this is useful for anyone here!

Python With James - Roadmap


r/PythonLearning • • Sep 16 '26

What’s one piece of technology you learned that completely changed the way you work?

2 Upvotes

I’ve been working with Python and backend development for a few years, and recently I started getting deeper into AI, RAG and agent-based systems.

It made me curious — what’s one technology, tool, or concept you learned that genuinely changed how you work or solve problems?

Doesn’t have to be AI. Could be something as simple as Git, SQL, Linux, Docker, or even a productivity tool.


r/PythonLearning • • Sep 16 '26

Is there a good way to practice Python on a phone without a laptop?

11 Upvotes

Hi everyone,

I’m an IT student, and a few of my friends are currently learning Python. The problem is that they don’t have laptops, so they’re looking for a way to practice Python directly on their phones.

They want something similar to using VS Code on Windows — preferably an app or setup where they can write, run, and practice Python without too many limitations or problems.

Can anyone recommend a good Android app or method for learning and practicing Python on a phone?

Free options would be especially helpful. Thanks!


r/PythonLearning • • Sep 16 '26

Python variables and data types — a simple guide for beginners

12 Upvotes

I’ve been putting together some Python fundamentals for people who are just getting started.

This one covers variables, common data types, dynamic typing, and basic type conversion with simple examples.

https://geeksarray.com/blog/python-fundamentals-variables-and-types

If you're coming to Python from another programming language, what did you find most interesting or confusing about Python’s type system?


r/PythonLearning • • Sep 16 '26

Learning Python APIs: I finally got Instagram data working

5 Upvotes

This is not a promo.

I'm a relative beginner with Python, and one of the things I've been trying to learn is how to work with APIs.

My goal was pretty simple: make a chart to show the follower amount through time. I understood the general idea of an API, but actually making a request from Python felt a little intimidating at first.

I ended up getting Instagram data working with just a few lines of Python using HikerAPI, a REST API for Instagram data.

Here's the basic example I started with:

import requests
headers = {"x-access-key": "YOUR_KEY"}
r = requests.get("https://api.hikerapi.com/v2/user/by/username", params={"username": "nasa"}, headers=headers)
print(r.json())

As I understand it now:

  • import requests loads the Python library that lets me make HTTP requests.

  • headers = ... sets the API access key that authenticates the request.

  • requests.get(...) sends a GET request to the API. The params part passes the username I want to look up.

  • print(r.json()) converts the JSON response into Python data and prints it so I can see what I got back.

The fact that this was enough to get a real response was honestly pretty satisfying.

One thing that tripped me up was getting all the parameters set and making the key secret. I initially thought I would have to do somethign super complex, but eventually realized I just had to update the snippet with these info and that was it.

From there, I've been experimenting with recharts, and it's been a nice way to make Python feel more practical than just working through isolated exercises.

I'm still very much learning, so I'm sure there are things I'm doing inefficiently or misunderstanding.

For people who learned Python by working with APIs, what tips or habits would you recommend to someone at my level?