r/PythonLearning • • 23h ago

Looking for someone to build projects with

24 Upvotes

Hey, I’m a computer science student from Poland (CET timezone) and I’ve been wanting to find someone to work on some Python projects with. Learning on my own only gets me so far, I feel like I’d improve way faster if I had someone to build stuff with and bounce ideas off. Also I’d like to finally have a few real projects on my GitHub, because right now there’s not much there.

I’m not picky about what we make, anything we can actually finish. I’d also like to get better at working with git properly, like PRs and reviewing each other’s code. Level doesn’t matter that much to me, I just want someone who’s serious about it and won’t ghost after a week haha.

If you’re interested, just comment here or DM me and we can talk about what to build :D


r/PythonLearning • • 10h ago

The day of learning of python full stuck

Post image
16 Upvotes

The basic information 😄😄😄


r/PythonLearning • • 1h ago

Learning SQL with Python?

Post image
9 Upvotes

This 👉interactive SQLite demonstration helps student understand relational databases.

The sqlite3 extension of 𝐦𝐞𝐦𝐨𝐫𝐲_𝐠𝐫𝐚𝐩𝐡 makes database content visible alongside Python's data structures. The demo shows how to:

  • Create tables with primary and foreign keys.
  • Model relationships between students, courses, and teachers.
  • Insert data and observe how the database changes.
  • Combine multiple tables using SQL JOIN operations.
  • Use parameterized queries.

The final query answers a seemingly simple question: Which teachers teach Alice, and for which courses? Answering this question involves joining five tables!

With 𝐦𝐞𝐦𝐨𝐫𝐲_𝐠𝐫𝐚𝐩𝐡, students can step through the Python program and inspect the database content at every step, directly in their browser, without installing anything.

See 👉other 𝐦𝐞𝐦𝐨𝐫𝐲_𝐠𝐫𝐚𝐩𝐡 visualizations.


r/PythonLearning • • 15h ago

Showcase I built a Python tool to automate GitHub repairs and verify CI results

Thumbnail
gallery
7 Upvotes

I built GitHub Notification AutoFix to monitor actionable GitHub notifications, attempt fixes with Codex CLI, and verify checks for the exact repair commit before marking a notification as done.

The Python code handles GitHub API requests, SQLite state, retries and mocked tests. Pending checks, missing permissions or a newer commit keep the repair unresolved.

Repairs currently target only repositories owned by my account. Live use requires GitHub credentials and an authenticated Codex CLI.

The interactive demo uses test doubles for GitHub and Codex, so you can explore the verification logic without changing real repositories.

Source

Feedback on the Python structure and test coverage is welcome.


r/PythonLearning • • 11h ago

Help Request Getting TypeError: unsupported operand 'int' and 'str' when summing scores from input()

4 Upvotes

I'm a few weeks into learning Python and working on a small practice project: a program that asks the user for a few course scores with input(), then calculates the total and the average. Nothing fancy, just trying to get the basics to click.

Here's the code I have right now:

courses = 3
total = 0
scores = []
for i in range(courses):
    score = input('Enter score ' + str(i + 1) + ': ')
    scores.append(score)
for score in scores:
    total = total + score
average = total / courses
print('Average:', average)

And this is the error I get:

Traceback (most recent call last):
  File "grades.py", line 8, in <module>
    total = total + score
TypeError: unsupported operand type(s) for +: 'int' and 'str'

I think I get the general idea: input() gives me something that isn't a number, and I'm adding it to total, which starts as the int 0. I searched for this error and a lot of answers mention int(), so I know int() converts a string to a number. What I'm stuck on is where to do the conversion. Should I call int() right when I get the input in the first loop, or wait and convert while summing? And if I convert early, will that break something else, like how I'm storing the scores in the list?

So what type does input() actually return, and what's the cleaner way to write this so the total and average work? Thanks in advance, I appreciate any pointers.


r/PythonLearning • • 19h ago

Learning Project: Word-level Markov chain text generator

4 Upvotes

I wrote a small Python program that generates text using a word-level Markov chain. It reads a source.txt file, builds a dictionary of word sequences and their possible followers, and then generates new text by randomly selecting subsequent words. I'm sharing it here because I'd appreciate feedback on the implementation, particularly code structure, efficiency, and any improvements you might suggest.

"""Word-level Markov chain text generator.
Learns which words follow each ORDER-word group in source.txt,
then generates new text by repeatedly picking a random follower.
"""

from collections import defaultdict
import random

ORDER = 3
STEPS = 50

def build_dict(data):
    big_dict = defaultdict(list)
    words = data.split()

    if len(words) <= ORDER:
        raise ValueError(f"Source needs more than {ORDER} words")

    length = len(words) - ORDER

    for i in range(length):
        previous = tuple(words[i : i + ORDER])
        following = words[i + ORDER]
        big_dict[previous].append(following)

    return dict(big_dict)

def generate_text(big_dict):
    output_words = list()
    keys = list(big_dict.keys())
    start = random.choice(keys)
    output_words.extend(start)
    step = 0

    while step < STEPS:
        try:
            choice = random.choice(big_dict[start])
            output_words.append(choice)
            start = tuple(output_words[-ORDER:])
        except KeyError:
            start = random.choice(keys)
            output_words.extend(start)
        finally:
            step += 1

    return output_words

if __name__ == "__main__":
    with open("source.txt", "r", encoding="utf-8") as file:
        data = file.read()

    big_dict = build_dict(data)
    output_words = generate_text(big_dict)
    print(" ".join(output_words))```

r/PythonLearning • • 16h ago

Discussion What modules do people recommend calculus and matrix question generator?

3 Upvotes

I want to make a random problem generator (also generating the answers) and eventually with some sort of spaced repetition thing, maybe

The best stuff for writing math in python seem to concentrate on making documents for the most part, and I am wondering what my best options for presentability and such


r/PythonLearning • • 21h ago

Help Request Trying to learn more than basics

3 Upvotes

Hi! I'm not the one making the request, but I have been asked and I don't know. This person wants to Learn about the structure of a Software (Data Base, system architecture, Development phases, front and back end). Which are the Best resources for this? Are ther any advise you have? I'm not a Python user so I don't know very well how tu structure this question for you. I know it's a very open-wide question, but any help could be useful. If You need more specification, please ask me so I can't ask this person about it. Thanks You so much for treading!


r/PythonLearning • • 5m ago

Showcase App per imparare in py

1 Upvotes

Fatto con manus è un sito semplice con un tutore ia che fa imparare le componenti e da esercizi per imparare il python https://codexia-4wrzt95z.manus.space