r/learnpython • • 2d ago

FCC Python cert seems outdated (v7 archived). Should I start with the current v9 curriculum or look for alternatives?

2 Upvotes

I have reviewed numerous assessments regarding the FCC Python Certifications, which generally indicate that the video lectures are of poor quality. Furthermore, the "Scientific Computing with Python Certification" currently displays a notice stating: "The content in this section is not being updated, but is still available for you to further your learning. We recommend trying our current curriculum." The current curriculum includes the Python certification located at https://www.freecodecamp.org/learn/python-v9/

As I require a certificate for a specific purpose, I am evaluating this resource. I would also appreciate recommendations for alternative certifications, as I intend to complete the "Data Analysis with Python" and "Machine Learning with Python Certification" courses subsequently.

Could you please review this information and advise whether it is advisable to begin my Python studies with this resource? Additionally, I would value suggestions for reputable instructors or YouTube channels that teach Python programming effectively. I am a fast-paced learner who requires only minimal guidance from a mentor or teacher at the beginning and intermittently, as I am confident in my ability to learn independently thereafter. I would appreciate your response.


r/learnpython • • 2d ago

Biology student and PCEP & PCAP

1 Upvotes

Hi, everyone!

I’m a biology student (bachelor’s degree) in Italy. I’m F30 years old and still have several exams left before I graduate.

In the meantime, I’ve purchased the PCEP and PCAP courses to earn those two certifications later on (I had to spend some virtual money and there wasn’t anything interesting, so I thought of Python, since it can’t hurt, in my opinion).

As you can see, I have absolutely nothing to put on my resume, not even for jobs in biology labs that don't require a degree (there are few, but they do exist; however, I've never been hired for one). I've never worked before and only have experience in university labs, which has been very limited, just a couple of days a year for a course.

I was wondering: does it make sense, in my case, to keep studying Python to get those two certifications, or not? Is it worth studying Python in general to “retrain” myself? It would definitely be better to have a GitHub page and lots of projects, but I don’t think I’m capable of reaching that level in programming.

In any case, I plan to finish my bachelor’s degree. After that, I don’t know what to do.


r/learnpython • • 2d ago

Need Help In Coding

0 Upvotes

Hello Redditors ;) 

I am very new to programming and don't have a lot of time right now. I know Python fundamentals, so I can do simple coding, sometimes not even simpler ones, and I can't solve even medium-level problems at all. I have no idea how to get better, it's just so damn hard. When you look at a question, how do you know which logic or tools to use? I'm getting really tired and frustrated because it feels way too difficult. How should I actually get good at this? Please help me out how do you guys actually write code? 


r/learnpython • • 2d ago

B.Pharm student looking for help with a CNN-based project in Pharmacognosy!

2 Upvotes

Hi everyone!

I'm a final-year B.Pharm student working on my final-year project under Pharmacognosy, and I've decided to explore using Convolutional Neural Networks (CNNs) to detect adulterants in powdered crude drugs through microscopic images.

The idea is to train an image classification model that can distinguish genuine crude drugs from adulterated samples, potentially making herbal drug quality control more efficient.

Here's the catch: I'm a complete beginner when it comes to coding and machine learning!

I've tried a small experiment on Google Colab (black pepper vs. papaya seeds), but I have a LOT to learn.

I'm looking for help from:

  • IT/CS students or professionals familiar with Python, CNNs and image classification.
  • Anyone experienced with machine learning, microscopy or image datasets.
  • Pharmacy/Pharmacognosy researchers who could offer guidance on the scientific side.

I'm willing to put in the work and learn. I'm not expecting anyone to do the project for me; even a little guidance, useful resources, research papers or suggestions would mean a lot.

I have around 7 months to work on this, and I'd love to connect with anyone who might be interested in helping me navigate this journey.

Any help is genuinely appreciated. Thank you! :)


r/learnpython • • 2d ago

What's the best way to learn well in projects part of python crash course by Eric Matthes?

0 Upvotes

hello everyone, so I start learning python and I get python crash course book by Eric Matthes

and everything went well, I reach the projects part and I am not sure what's the best way to learn from it, should I read the chapter then try to write my own code, or is there more efficent way to actually learn, I am kinda concered I might just copy and paste the code without actually learn anything, thanks in advance


r/learnpython • • 2d ago

What is the point of getcanvas()? And the method get()

1 Upvotes

Hi, I'm currently on an assignment that requires me to use this function, but not only have we never seen it in class but all the research I've done haven't help me at all. My teacher also mentions the method get() in the instruction and I'm also confused by it.

Edit More details

Long story short, my assignement is to create a "forest". For that I created functions to draw the trees but I still have to create a window and a button that allows the user to choose how many trees will be drawn in it. It's at that point that I have to use the "getcanvas()" to supposedly make a window and the "get()" in a function that will be used as a command in the button.

from random import*#Used in functions
from turtle import*
from tkinter import*
from math import* #Used in functions

master= getcanvas().master #Exact line my teacher wants us to use 

screen = Screen()
screen.setup(800,500)
colormode(255)
screen.bgcolor(0, 46, 122)
speed(2000)
#What I'd like to do with it

def nbreSapin(): #Function in which I have to use 'get()' to get the number of trees
    nb= int(input("How many trees:"))
    if nb<100 and nb>0:
        getsapin(nb)
    else:
        pass

r/learnpython • • 2d ago

Complete Python Roadmap for AI/ML, LLMs, NLP, RL and Robotics

0 Upvotes

Hi everyone,

I want to master Python and build a strong programming foundation for a career in AI/ML, LLMs, NLP, Reinforcement Learning, Computer Vision and Robotics.

I'd like advice on:

  1. Which Python concepts should I master from beginner to advanced?
  2. How deeply should I learn OOP, DSA, decorators, generators, multithreading and asynchronous programming?
  3. Which libraries should I prioritize: NumPy, Pandas, SciPy, Scikit-learn, PyTorch, TensorFlow and Hugging Face?
  4. What Python skills are essential for implementing ML/DL algorithms and research papers?
  5. How much Python is required for LLM development, fine-tuning and Reinforcement Learning?
  6. Which projects should I build to develop strong practical and research-oriented skills?

I'd appreciate a structured learning roadmap and recommendations for high-quality resources.

Thanks in advance!


r/learnpython • • 2d ago

is This possible?

0 Upvotes

so, as of recent ive come to know that docs uses hella ai, and like scraps your stuff even when they say they dont, so i wanted to know if its possible to make a google docs like app (for pc) using python, im sure its possible but i dont know where to start, i will need to learn the logic and how to code first but im not sure if theres any useful tutorials

i just want to make my own documents app so i can write whatever i want with normal storage to my pc and write books.


r/learnpython • • 2d ago

Advance python in 5 days

0 Upvotes

Guysss .. need serious help

I have a very supreme competitive robotics comp... Our robot needs to solve a maze n more. I need to program it in python. Otherwise v r cooked.

I know basics of python- lops, variables, strings, conditions, ranges, operators, input, functions etc. But not the level to program the bot

Im programming a lego spike prime. Plss suggestions needed.

( My siblings are 10/10 in robotics so i hv a huge comparison, can't take help from them)


r/learnpython • • 2d ago

Anyone help me with this loop? I cant break out of the outer loop?

3 Upvotes
while True:
    try:
        STickets = float(input("Please enter the amount of student tickets you would like"))
        if STickets %1 !=0:
            print("please enter a whole number!")
            continue
        elif STickets < 0:
            print("please enter a positive number!")
            continue
        else:
            print(f"You have selected {int(STickets)}")
            Answer = input("is this the correct number? Yes/No").strip().capitalize()
            while True:
                    if Answer == "No":
                        break
                    if Answer =="Yes":
                        print("Confirmed")
                        break
                    else:
                        Answer = input("Enter Yes or No: ").strip().capitalize()
                    if Answer == "Yes":
                    break

r/learnpython • • 3d ago

Roadmap and book recommendations for advanced Python, Data Structures, and AI?

6 Upvotes

Hi everyone,

I am looking to build a strong foundation in Python with the long-term goal of getting into Machine Learning and AI.

Right now, I want to focus on three main areas:

  1. Advanced Python concepts (writing clean, efficient, and Pythonic code)
  2. Data Structures and Algorithms (DSA) in Python
  3. Transitioning from core Python to AI/ML libraries

Could you recommend a good learning roadmap, along with the best books or free resources to start with?

Thanks in advance for your help!


r/learnpython • • 3d ago

Variability in langdetect output

3 Upvotes

Hi all,
I’m using Python to filter out rows that contains non-English text from a noisy 10,000-row Excel dataset, and the final count varies slightly between runs (for example, keeping 7,522 vs. 7,508 cells—a difference of less than 0.001% of total cells). Is that normal for noisy data, and is that level of variance acceptable for research?

Thanks all!


r/learnpython • • 2d ago

Function without argument

1 Upvotes

Ive got a function that takes a dictionary as an argument.
Now Id like to program it so when the function is called without any argument, instead of an error message it prints something custom (a dictionary for example).

Any help is appreciated :D


r/learnpython • • 3d ago

CS50 problom 4 Gussing game

0 Upvotes

this is what im trying to do https://cs50.harvard.edu/python/psets/4/game/

this my code

import random


while True:
    try:
        level = int(input("Level:"))
        if level >= 0:
            False
        number = random.randint(1, level)
        output = number
        if output < number:
            print("Too small!")
        elif output > number:
            print("Too large!")
        elif output == number:
            print("Just right!")
        
        print("Guess:", number)
    except ValueError:
        pass

when I start and give a number it give ether it stopes it "Just right!" or print both "Just right!" and Guess: so how do I make it don't do that and do what it suppose to do in the problem


r/learnpython • • 3d ago

Intermediate in Python — How do I move beyond the basics and master Python for real-world software?

2 Upvotes

Hey everyone,

I’m a Computer Science undergrad currently at an intermediate level in Python. So far, I’m comfortable with core syntax, data structures (lists, dicts, sets), basic problem-solving, OOP concepts, and exception handling.

Right now, I feel stuck in the phase where I know how to write basic scripts and solve logic problems, but I don't know how to take the next big step toward mastering the language and building real-world applications.

For those of you experienced with Python:

What intermediate-to-advanced Python concepts (like decorators, generators, file/API handling, or memory management) should I focus on next?

What kind of practical projects helped you bridge the gap from writing simple scripts to building actual software?

Any recommended books or resources for writing clean, Pythonic code?

Thanks in advance for any guidance!


r/learnpython • • 3d ago

Editable module not found error

4 Upvotes

I have a custom module that I am developing and I can not get it to import when installing with

"uv pip install -e ."

directory structure:

niceachemy/
|-src/
|  |-nicealchemy/
|  |  |-__init__.py
|  |  |-fields.py
|-pyproject.toml
|-setup.py

pyproject.toml:

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "nicealchemy"
version = "0.1"

setup.py:

from setuptools import setup, find_packages

setup(name='nice-alchemy',
      version='0.1',
      author='Nathan Shaffer',
      author_email='nathanjshaffer@gmail.com',
      license='MIT',
      packages=find_packages(where='src'),
      package_dir={
          'nicealchemy': 'src/nicealchemy',
      },
      zip_safe=False)

script is running on a nicegui docker image that uses uv by default.

When I install my module from github, it works just fine, but if I try to install from a volume as editable, import fails with

ModuleNotFoundError: No module named 'nicealchemy'

I have tried specifying the .venv location to pip install and editable compatibility mode

uv pip install --python /opt/venv/bin/python -e . --config-setting editable_mode=compat

I have listed the installed modules from within the script and it correctly lists my module:

from importlib.metadata import distributions

installed = sorted(
    f"{dist.metadata['Name']}=={dist.version}" 
    for dist in distributions()
)

for pkg in installed:
    print(pkg)

/opt/venv/lib64/python3.14 shows a dist-info directory for the module.

I have rebuilt the docker stack many times to make sure the pip install is not being shadowed by the git module installation.

I just can not figure out what I else could possibly check for at this point

EDIT: So what I ended up doing, as nothing I tried doing would work, is I just made a simling in /opt/venv/lib64/python3.14/site-packages to the module src directory, and that worked. I know its not the correct way, but honestly, not sure why the editable install doesn't just do that.


r/learnpython • • 3d ago

Encoder issue in Micropython/Microcontroller

3 Upvotes

I'm building my first project, starting with the Wokwi ESP32 simulator. My program was working until I tried adding a rotary encoder. I keep getting errors. Here's the code and error message. The ssd1306.py file is standard. I've tried changing things over to SoftI2C but was still having issues.

I took the encoder code from here.

Error:

Warning: I2C(-1, ...) is deprecated, use SoftI2C(...) instead

Traceback (most recent call last):

File "main.py", line 27, in <module>

File "ssd1306.py", line 116, in __init__

File "ssd1306.py", line 36, in __init__

File "ssd1306.py", line 61, in init_display

File "ssd1306.py", line 121, in write_cmd

OSError: [Errno 19] ENODEV

from machine import Pin, I2C
import ssd1306
import network
import urequests
import time
import random


# ESP32 Pin assignment 
i2c = I2C(scl=Pin(22), sda=Pin(21))
button_pin = Pin(27, Pin.IN, Pin.PULL_UP)
direction_pin = Pin(26, Pin.IN, Pin.PULL_UP)
step_pin = Pin(25, Pin.IN, Pin.PULL_UP)


# I2C variables
ID = 0
SDA = Pin(0)
SCL = Pin(1)
i2c = I2C(scl=SCL, sda=SDA)


# for tracking the direction and button state
previous_value = True
button_down = False


#oled details
oled_width = 128
oled_height = 64
oled = ssd1306.SSD1306_I2C(oled_width, oled_height, i2c)

r/learnpython • • 4d ago

best way to learn advance python?

27 Upvotes

any good resources?


r/learnpython • • 4d ago

Looking for a good Python exercise book (Beginner to Advanced)

16 Upvotes

I have recently completed the basics of Python and want to improve my problem solving skills.

Can anyone recommend a good exercise book that starts with basic problems and gradually moves to intermediate and advanced ones? Preferably with solutions included.

Would love to hear your recommendations. Thanks!


r/learnpython • • 3d ago

learn python for beginners

0 Upvotes

Hi all, I'm a complete beginner and would like to learn Python. What are the best resources and steps to get started? Thanks!


r/learnpython • • 4d ago

Resources or techinques on learning and mastering algorithms?

3 Upvotes

It boggles me how people were able to master or visualize algorithms before the time of AI to break them down.

I wanted to know if the veterans here had any advice to help with visualizing or learning algorithms more efficiently?


r/learnpython • • 4d ago

Feedback on my python project

1 Upvotes

Hello everyone, I'm a computer science student working on a small project about k-medoid clustering algorithms called CLARANS and FastCLARANS. I've been developing this project for quite some time and would like the community to review it. Initially, I intended to submit it to the Journal of Open Source Software, but after careful consideration, I realized it wasn't quite suitable. You can find more information at this repository: https://github.com/ThienNguyen3001/scikit-clarans.git

What I'd like feedback on

- Is the code structure okay, or could it be improved

- Anything I may have gotten wrong

- What I could add next

Thanks for the feedbacks!


r/learnpython • • 4d ago

where would you filter approved association documents in a python assistant?

0 Upvotes

I'm trying to work through the python retrieval step for a customgpt.ai project. Say an association stores its approved policy and a replacement draft in the same collection. They both say "membership renewal" in the title. The draft has a new deadline, which makes it a useful test of whether the approval filter is doing its job

The shape I'm considering has a status and a staff approval ID on each record. The fetch function would query approved records. The function that builds the context would check that state again before passing anything to the assistant. I'd like to give the test a draft with a stronger title match and see what comes out of both functions

How would you write that test in python? I'd appreciate a small example or a suggestion for what to stub so I can tell which layer rejected the draft


r/learnpython • • 4d ago

Complete beginners

1 Upvotes

As the title suggests,I’m a complete beginner starting from zero,I don’t even know what to call the basics,but learning python seems interesting an I’d really love to learn it, is there a structure to follow? I don’t know where to start from for I have no knowledge of programming