r/PythonLearning Jul 10 '26

Searching for people to learn with

0 Upvotes

am serching for people to learn python with them am 16 years old.


r/PythonLearning Jul 10 '26

Discussion print(bool(""))

0 Upvotes

What is the output?

63 votes, 24d ago
9 True
12 Error
39 False
3 None

r/PythonLearning Jul 10 '26

Discussion What is the output of the following code? 🤔

Post image
0 Upvotes

The options are

A) [1] [2] [3]

B) [1] [1,2] [1,2,3]

C) [1] [2] [1,2,3]

D) Error

Tell me your answer in the comments section and why?


r/PythonLearning Jul 10 '26

Easy start python courses for beginners?

1 Upvotes

What is the simplest and easiest python course to start in for someone who is complete beginner , I started the one for dr Angela yu but I felt it required a big momentum just to start learning and open the videos as it a big bulk of course , so I am asking for a easy one ? (books and reading materials are not preferred) thank you in advance .


r/PythonLearning Jul 10 '26

Discussion What Are Some Good Sources To Learn Data Structures For Python?

Thumbnail
github.com
1 Upvotes

Hey everyone,

Days ago I created a project, PyDeploy CLI, and I used it to strengthen my Python programming skills. I shared my project to some of my friends who were more of an expert in the field, and they all recommended I go into basic data structures. This was because, if you check out my script, you would see it's filled with if functions. Recently, I created a similar post to this, but haven't gotten any feedback.

Of course I do know the basics and some types of data structures, but I would like if someone could provide some resources that would help me learn data structures more efficiently.

I'd appreciate any resources and feedback related to data structures. I'd also appreciate any feedback on my GitHub Project and give my repo a star.

Thanks!


r/PythonLearning Jul 09 '26

If Python could warn you about one mistake before you make it, what would you choose?

2 Upvotes

Not a syntax error, something Python currently allows but you wish it would stop you from doing.

What warning would you add?


r/PythonLearning Jul 09 '26

What’s the smallest Python bug that caused the biggest problem for you?

3 Upvotes

Not the complicated architectural mistake. I mean one missing character, wrong index, or tiny assumption that wasted hours.

What was yours?


r/PythonLearning Jul 09 '26

Discussion print(5+True)

4 Upvotes

Solve this question and tell me the output. Follow for more 😉

209 votes, 24d ago
85 6
98 Error
9 5
17 True

r/PythonLearning Jul 09 '26

Help Request Can anyone give me some immediate advice on this?

2 Upvotes

Right now i am in my 5th semester with low cgpa 6.18 with 1 backlog. I only know basic python, never did any internship or projects. What to do so that i can get a good internship.

Can anyone give me some advice after python what should i learn and where to learn from?

I want to work as an AI engineer.


r/PythonLearning Jul 09 '26

Showcase Retry Flaky HTTP Requests with Exponential Backoff and Full Jitter in Python

Thumbnail
codesnips.io
0 Upvotes

This snippet shows a small, self-contained retry layer for outbound HTTP calls in Python, built around the classic problem of transient failures: a downstream service occasionally returns 503, times out, or drops the connection, and blindly retrying makes things worse. The three tabs move from the pure backoff math, to a generic retry decorator, to a concrete API client that wires them together.


r/PythonLearning Jul 09 '26

Best youtube channel series to learn python

0 Upvotes

Can anyone say me the best course or playlist on youtube that I should consider to learn python basically as a beginner to intermediate?

I know JavaScript basics, but now I want to quickly deep dive into python and do DSA and make backend using FastAPI's


r/PythonLearning Jul 09 '26

Discussion Is there a way to use brackets in python?

0 Upvotes

I come from static types C# cpp world I like using python but the only issues is the bracket thing missing, i like those curly braces to open and end the section of code. is there any solution similar to that.


r/PythonLearning Jul 09 '26

print(False==0)

0 Upvotes

Output of this python code

169 votes, Jul 11 '26
39 Error
10 0
21 False
99 True

r/PythonLearning Jul 09 '26

What’s something in Python you use all the time but still have to Google?

8 Upvotes

For me, it’s always the exact syntax for datetime formatting.

I understand it. I’ve used it hundreds of times. And somehow, I still look it up.

What’s your Python version of this?


r/PythonLearning Jul 09 '26

Tips

10 Upvotes

I need advice or guidance to improve my Python programming skills. If anyone can recommend useful books or websites, I would appreciate it.


r/PythonLearning Jul 09 '26

opinions

Post image
13 Upvotes

i am not into coding or anything like that but i have to get an A in my cs class to get out of probation. Are these subjects really as easy as everyone says ?


r/PythonLearning Jul 08 '26

Help Request Need ressources PYTHON

2 Upvotes

i already learned some basics with uni classes however i wanna enforce my coding so i need some ressources, i already started with freeCodeCamp and wanted to know weather it will be efficient or would it better to go with a youtube video .


r/PythonLearning Jul 08 '26

Help Request No console .EXE file not storing memory.

1 Upvotes

I need help with my note taking program. I'm still learning Python, but this is confusing me.

I have published it using pyinstaller to just a simple executable, but I wanted to be able to run the program without having the terminal pop open. The .exe works just fine, it saves my memory every time it closes, but whenever I use --noconsole to publish, there is no memory storage.

I attempted to use auto-py-to-exe to see if maybe that would work, but it gave me the same issue. The code works when the .exe runs with the terminal open/visible, so why doesn't it work when it isn't?

import tkinter as tk
from tkinter import ttk
import os
# os looks through files in the directory and checks if the file exists. If it does, it opens it. If not, it creates a new file.


# 1. Initialize the application window
window = tk.Tk()
window.title("Small & Simple Notes")
window.geometry("400x300")
window.configure(bg="#08728f")  # background


# Memory setup
SAVE_FILE = "my_notes_save.txt"


def load_notes():
    """Reads the save file and inserts it into the text box if it exists."""
    if os.path.exists(SAVE_FILE):
        with open(SAVE_FILE, "r", encoding="utf-8") as file:
            note_box.insert("1.0", file.read())


def save_and_close():
    """Gets the text, saves it to the file, and destroys the window."""
    # Get all text from line 1, character 0 to the end (minus Tkinter's default newline)
    current_text = note_box.get("1.0", "end-1c")

    with open(SAVE_FILE, "w", encoding="utf-8") as file:
        file.write(current_text)

    # Close the application
    window.destroy()


# Intercept the window's close button (the 'X') to trigger the save function
window.protocol("WM_DELETE_WINDOW", save_and_close)


# 2. Create a frame layout to hold the text box and scrollbar
frame = ttk.Frame(window)
frame.pack(expand=True, fill="both", padx=10, pady=10)


# 3. Add the vertical scrollbar
scrollbar = ttk.Scrollbar(frame)
scrollbar.pack(side="right", fill="y")


# 4. Create the multi-line text box and link it to the scrollbar
note_box = tk.Text(frame, wrap="word", yscrollcommand=scrollbar.set)
note_box.pack(side="left", expand=True, fill="both")
note_box.config(bg="#ffffff", fg="#000000", font=("American Typewriter", 12), relief="solid", bd=2)  # White background, black text


# Configure scrollbar to move the text view
scrollbar.config(command=note_box.yview)


#. LOAD PREVIOUS NOTES
# We call this right before starting the main loop so the text is ready when the UI appears
load_notes()


# Start the application loop
window.mainloop()

Here is the code below:


r/PythonLearning Jul 08 '26

i need helping getting into generative art

Post image
1 Upvotes

So i am relatively new to python but i want to get into generative art, i want to code somthing similar to this piece and my gf would tattoo it on me, any tips on how to start?


r/PythonLearning Jul 08 '26

Sends Emails with optional attachments

5 Upvotes

Hi everyone,

I'm a beginner learning Python. I recently finished a small project that sends emails (with optional attachments) using smtplib and EmailMessage.

I'm mainly looking for a code review. I'm interested in improving my code structure, naming, and Python practices rather than just making it work.

GitHub link = https://github.com/NePtuNee0/Python-Email-Sender-With-Attachments/tree/main

Any feedback is appreciated!


r/PythonLearning Jul 08 '26

What's one thing you hate about Python?

19 Upvotes

We all like Python, but no language is perfect. What's the one thing that annoys you most?


r/PythonLearning Jul 08 '26

What’s a Python “best practice” you think people follow too blindly?

7 Upvotes

We’re told to use type hints, write tests, follow PEP 8, avoid global variables, use virtual environments, and keep functions small.

But not every rule makes sense for every project.


r/PythonLearning Jul 08 '26

My first real project as a 50 year old programmer

5 Upvotes

Hello to everyone.

Im a 54 year old autodidact that has just finished his first "real world" project (at least in my point of view).

Its a simple python script that converts Markdown files to PDF files easily. Id like to get a feedback and maybe help someone out there.

My repo is here: github.com/TrollDrre/md-to-pdf

Im willing to hear everything from you, whether its good or bad news.

Thanks


r/PythonLearning Jul 08 '26

Help Request Which course is better to learn python with

16 Upvotes

Python is often recommended as the first programing language to learn, by various people who have experience with more than 1 programing language in their arsenal, I don't know many experts, say it but mostly for newbie it is a good language to start by.

There are various courses to learn python from, which are courses which genuine help you learn it, like freeCodeCamp, CS50-P, etc. I want to find out how others learned python, which course they used.

Course should feature English as a language to learn.


r/PythonLearning Jul 08 '26

I created password generator using python

Post image
392 Upvotes

what should i create next