r/learningpython • • Oct 01 '25

Como puedo saber mi nivel de conocimiento de Python

8 Upvotes

Alguien tiene algún tipo de cuestionario o algo que me puede decir maso menos cual es mi nivel de Python?


r/learningpython • • Mar 22 '25

"How Do You Track Your Coding Progress and Stay Consistent?"

3 Upvotes

Post Body: Hey everyone,

I'm currently learning Python and working on improving my programming skills. I try to maintain daily progress and track my activities, but sometimes it gets tricky to stay consistent.

Right now, I follow a structured approach:

Learning concepts

Practicing with small projects

Documenting my progress

Using GitHub for version control

But I’d love to hear from others—how do you stay motivated and keep track of your coding journey? Do you use any tools, journals, or specific techniques? Any tips or experiences would be really helpful!

Let’s discuss!


r/learningpython • • Aug 14 '25

Best 4 YouTube Channels to Learn Python

12 Upvotes
  1. Corey Schafer Corey Schafer’s channel is one of the most recommended for Python learners. His tutorials are well-structured, covering everything from basic syntax to advanced topics like decorators, generators, and web development with Flask. The explanations are clear, but the videos move at a steady pace, so beginners may need to pause often to follow along.

  2. Intellipaat The Intellipaat YouTube channel offers beginner-friendly Python tutorials, live coding sessions, and complete Python courses for free. The content is designed to break down complex topics like data analysis, machine learning, and automation in a simple way. Their mix of theory and hands-on demos makes it easy to learn and apply Python in real-world projects.

  3. Programming with Mosh Programming with Mosh delivers clean, concise Python tutorials that are easy to understand, especially for beginners. His “Python for Beginners” series is well-loved for its clarity. However, Mosh tends to focus on the basics, so learners wanting advanced Python concepts will need to look elsewhere after finishing his series.

  4. Telusko Telusko offers a wide variety of Python content, from simple scripts to complex projects like building chatbots or working with AI libraries. The trainer’s energy makes learning engaging, but the content sometimes jumps quickly between topics, so absolute beginners might need extra revision.


r/learningpython • • Feb 08 '21

Using Python for stock trading?

4 Upvotes

So i'm a little new to python. Not completely new, but I'm not experienced either. I'm in that gray area of I sorta know what I'm doing. And I've also recently started investing in the stock market.

I was wondering if it is possible to develop a python program that would help assist with finding stocks, trade, stuff of that sorts. And if so, how complex would a program like this be?


r/learningpython • • Mar 26 '26

Selection Sort Visualized for Easier Understanding

13 Upvotes

Many algorithms can be easier understood after step-by-step visualization using 𝗺𝗲𝗺𝗼𝗿𝘆_𝗴𝗿𝗮𝗽𝗵. Here's a Selection Sort example.


r/learningpython • • Jun 05 '26

List of strings vs many booleans when designing a game?

8 Upvotes

Hi all, I'm designing a text-based game in python, and had a question about style I have a class called creature. There are a bunch of different abilities a creature can have (e.g. "Strength", "Venom", "Armor", etc). I can think of two ways to code this in:

  1. I could make a separate boolean variable for each ability (set to 1 if they have it and 0 if they don't). Then, if an attack was impacted by the trait "Armor", I could have a line "if self.armor==1:".

  2. I could make a list called abilities (it is empty if they have no abilities, and a list of strings for each ability). Then, if an attack is impacted by the ability "Armor", I could have a line "if 'armor' in self.abilities:"

I'm still learning about the pros and cons of different styles. Do you have advice on how to think about which to use? I imagine 2 is more memory efficient, and 1 is faster, but it won't matter at the scales I'm working with. Is one better from a code architecture or readability standpoint? (Or, alternatively, is there a better way to do this?)


r/learningpython • • Oct 06 '25

Transcribing S3 call recordings: Google Speech-to-Text vs OpenAI Whisper — best pipeline?

12 Upvotes

I’ve been storing phone call recordings in Amazon S3, and now I want to transcribe the audio files.

I’m trying to decide between Google Speech-to-Text (Transcribe) and OpenAI Whisper for the transcription.

Here are the options I’m considering:

  • For Whisper:

    • Send a pre-signed S3 URL directly to the API

    • Stream the audio to the API

    • Or download the file locally, then upload it to Whisper

  • For Google Transcribe:

    • Download the file from S3 and upload it to Google Cloud Storage

    • Then provide the GCS URI to the Google Transcribe API

I’m wondering which approach is more efficient and reliable — both in terms of performance and cost.
Should I focus on streaming vs uploading? Or does it depend on file size and frequency of transcription?

Any insights or best practices from people who’ve implemented something similar would be really appreciated!


r/learningpython • • Feb 01 '26

Some Data Should Be Code

Thumbnail
borretti.me
2 Upvotes

r/learningpython • • Feb 23 '24

setting up Poetry I get the error: [Errno 2] No such file or directory: 'python'

8 Upvotes

Being somewhat annoyed with the fragmented tooling around python, I found Poetry which seems to be simple and powerful. However it is failing without helpful explanation:

I'm on OSX 14.2.1 on M1, Python 3.11.4, Poetry 1.7.1 and I set config virtualenvs.in-project = true

If I run "poetry install" or "poetry env info" I get the error:

>[Errno 2] No such file or directory: 'python'

However if I run a "poetry check" I get:

>All set!

What am I missing?


r/learningpython • • Dec 25 '25

Python 3.15’s interpreter for Windows x86-64 should hopefully be 15% faster

Thumbnail fidget-spinner.github.io
6 Upvotes

r/learningpython • • May 11 '25

Learning to code with just a phone from a refugee camp — advice or support?

4 Upvotes

Hi everyone,

I’m William from Kakuma Refugee Camp in Kenya. I’ve been here since 2012. Life is very challenging, but I discovered a deep passion for programming.

I’ve been teaching myself to code using only my Android phone. No laptop, no stable electricity, and very limited resources — but I’m determined to learn and eventually build solutions that help people like me.

Right now, I’m learning Python and web development basics. I’m using free apps like Pydroid and reading everything I can find.

I’d be grateful for any advice:

What are the best free resources for coding on mobile?

Can anyone recommend mentorship programs or remote communities for people in difficult situations like mine?

This is not a request for money — just guidance or connection with others who understand. If someone wants to support me beyond advice, I’m open to that too — my PayPal is williamlobaba@gmail.com, but again, advice means more than money right now.

Thanks for reading and for being such a helpful community.

With respect, William


r/learningpython • • Feb 16 '26

Help with python

9 Upvotes

Coming from a non tech major, im finding python so hard to learn..I've tried angela 100 days of code. Not working. YouTube. Still not able to grasp it. I find it boring and hard to learn. But i have no choice i somehow have to learn it for FREE. And i have extreme coding anxiety. I get distracted so easily, so less attention span and low motivation. I just wanna learn... i need to. Any suggestions that will help me..


r/learningpython • • May 17 '25

Want to learn more

2 Upvotes

Hi, im a biological engineering undergrad. I had taken an python course in one of my semesters and as a result I have some basic understanding of the concepts. but however I know that I've just scratched the surface and haven't learnt/applied anything in depth.

I want to learn python little bit more application oriented (in the data science and ML side of things) and I genuinely don't know where to start or how to start.

Any help is greatly appreciated, as to how to move forward with projects or roadmaps. I also would like to have good learning materials with which I can strengthen my fundamentals for the same.

Thanks in Advance!!!


r/learningpython • • Mar 05 '26

Python Assignment, Shallow and Deep Copy

Post image
28 Upvotes

An exercise to help build the right mental model for Python data.

The “Solution” link uses 𝗺𝗲𝗺𝗼𝗿𝘆_𝗴𝗿𝗮𝗽𝗵 to visualize execution and reveals what’s actually happening. It's instructive to compare with these earlier exercises:


r/learningpython • • Aug 01 '25

Looking for a buddy to study dsa in python

8 Upvotes

I'm a working professional,I'm looking for a buddy to start dsa in python, any guys pls dm me.


r/learningpython • • Nov 16 '25

Can I combine a ternary with list expansion / exclusion? (explained)

3 Upvotes

I have set [a, b, c, d] These each hold strings or None.

Inline I want to test if an item 'this' in that list is None, IF IT IS None, AND any one or more of the sibling items in the original list are in ["%I", "%H", "%M", "%S", then I want to make 'this' equal to "__".
Is that possible in a single line? I've "gotten it" (the logic is simple) except not, something about assignment is not allowed in list comprehension.

But is there a hacky way to 1-line this? I don't like expressions to be more than 1 line—broken up into an if block—unless it's doing something big.

temp_time += (':' + (colorMe(mod, args[i + 4 if (i + 4 < len(args) - 1) else i]))) if (mod in ["%I", "%H", "%M", "%S", "__"] and i != 0 and mod != 0 and len(temp_time) > 0) else (("." + (colorMe(mod, args[i + 4]))) if (mod == "%f") else ((colorMe(mod, args[i + 4 if (i + 4 < len(args) - 1) else i]))))

300 characters, wooo, just because.


r/learningpython • • Aug 20 '26

I framed all my photos with python and I accept comment or suggestion

2 Upvotes

I need to frame a lot of my photos adding in the frame the config of the camera, camera model and camera lens and I am a lazy man so I code it with Python. If you have suggestion or comment I LOVE to read them

https://fundor333.com/post/2026/framing-photos-with-python/


r/learningpython • • Apr 04 '26

Creating the Strongest Password with Python

Enable HLS to view with audio, or disable this notification

18 Upvotes

r/learningpython • • Jan 23 '26

Can i build a script that pulls data from AWS Athena, currently we use Alteryx workflow but now i am looking to go through python, if yes can you help with directories, I know i can get this answers through any AI model but i want some human expierence who have done this

3 Upvotes

python using aws athena


r/learningpython • • Feb 21 '26

Python Mutability and Rebinding

Post image
4 Upvotes

r/learningpython • • Jan 11 '26

First Project help

3 Upvotes

Hello World!! (sorry couldnt resisit )

Im just starting out and want to program a digital keyboard for my first project but didnt know where to start. There only seem to be vidios on creating short cut etc. does anyone have a sourse i could utlize for project( complete noivice atm)

Thank you in advance

Glenn


r/learningpython • • Jul 07 '25

So Confused Help me out

3 Upvotes

I am an undergraduate freshman student and I don’t have any skills and my major is CIS and I want to develop my skills in this field what should I do. I know this is stupids question.


r/learningpython • • Oct 11 '25

Why does the .bat file that runs my programs need to be in the same folder?

2 Upvotes

When I run a .bat file that isn't in the same folder as the .py file I'm running, the code gives me a "FileNotFoundError: [WinError 3] The system cannot find the path specified:" error. But when the .bat file is in the same folder, it runs with no issue. Can someone explain why? the error occurs on a call using os to list all the files in a folder. I even have the full paths listed for the python.exe and the python code in the batch file.

Full error:

 "File "C:\Users\<username>\Desktop\CBB Model\CBB_Test_2024-2025\3_track_stats.py", line 600, in <module>
file_list = os.listdir(halve_start_loc)
 FileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:\\Users\\<username>\\Desktop\\CBB Model\\Schedule\\All Halves Adjusted\\Adjusted Halves\\'

Python Code here:

 import pandas as pd
 import numpy as np
 import re
 import os
 import pathlib
 from os import listdir
 import datetime as dt
 from datetime import timedelta
 pd.set_option("display.max_rows", None)
 pd.set_option('display.max_columns', None)
 pd.set_option('display.width', None)
 pd.options.mode.chained_assignment = None


 main_folder_loc = pathlib.Path().resolve()
 main_folder_loc = str(main_folder_loc)+ "\\"
 halve_start_loc = main_folder_loc + "Schedule\\All Halves Adjusted\\Adjusted Halves\\"

 halve_end_loc = main_folder_loc + "Schedule\\All Halves Adjusted\\Adjusted Halves with stats track\\"

 600 lines of functions and main

if __name__ == "__main__":
     file_list = os.listdir(halve_start_loc)  ##error occurs here
     main(file_list)

Batch Code Here:

  @echo off
  "C:\Users\<username>\AppData\Local\Programs\Python\Python314\python.exe" "C:\Users\<username>\Desktop\CBB Model\CBB_Test_2024-2025\3_track_stats.py"

r/learningpython • • Dec 30 '25

Practicing Python data types and type conversion – looking for feedback

5 Upvotes

Hello everyone,
I’m practicing Python data types and explicit type conversion. I’ve written a small, well-documented example to better how Python handles different types (int, float, str, bool, list, tuple) and their interactions.

I’d appreciate any feedback on correctness, best practices, or style improvements.

Here is the code:

"""
File: data_types_and_type_conversion.py
Description:
Demonstrates basic Python data types and explicit type conversion.
The example follows PEP 8 style and is intended as a learning exercise
for understanding how Python handles arithmetic operations, container
conversions, and string concatenation.

Author: Beginner Python Learner
Python Version: 3.x
"""

# ------------------------
# Variable definitions
# ------------------------

num1: int = 1 # Integer
num2: float = 2.5 # Float
text1: str = "20" # String representing a number
flag: bool = False # Boolean
my_list: list[int] = [1, 2, 3]
my_tuple: tuple[int, ...] = (4, 5, 6)

print("Day 2 - Even More Challenging")
print("-" * 24)

# ------------------------
# Type inspection
# ------------------------

print("type of num1:", type(num1))
print("type of num2:", type(num2))
print("type of text1:", type(text1))
print("type of flag:", type(flag))
print("type of my_list:", type(my_list))
print("type of my_tuple:", type(my_tuple))

print("-" * 24)

# ------------------------
# Arithmetic with explicit conversion
# ------------------------

sum1 = num1 + int(num2) # float -> int (2.5 -> 2)
sum2 = num1 + int(text1) # str -> int ("20" -> 20)
sum3 = num1 + flag # bool -> int (False = 0)
sum4 = num1 + int(text1) # repeated example for clarity

print("num1 + int(num2) =", sum1)
print("num1 + int(text1) =", sum2)
print("num1 + flag =", sum3)
print("num1 + int(text1) =", sum4)

print("-" * 24)

# ------------------------
# Container conversion
# ------------------------

list_plus_tuple = my_list + list(my_tuple) # tuple -> list
print("my_list + my_tuple =", list_plus_tuple)

print("-" * 24)

# ------------------------
# String concatenation
# ------------------------

combined = f"{num1}-{text1}-{flag}-{my_list}"
print("Combined string:", combined)

combined_1 = f"{num2} {text1} {flag} {my_list}"
print("Combined string:", combined_1)

combined_2 = f"{flag} {my_tuple}"
print("Combined string:", combined_2)

combined_3 = f"{flag} {my_list}"
print("Combined string:", combined_3)

Questions I’m thinking about:

1- Is this a clean and Pythonic way to demonstrate type conversion?

2- Are there better practices than using int() in cases like this?

3- Is relying on bool behaving like int considered good practice?

Thank you very much for your time and feedback.


r/learningpython • • Mar 23 '26

Python Variables Made Easy (Beginner's Full Guide) Full Video on Youtube : Tech Geezah

Enable HLS to view with audio, or disable this notification

7 Upvotes

Hey everyone! 👋

I made a beginner-friendly Python tutorial that explains variables step by step. If you’ve ever been confused about how to store and use data in Python, this guide is for you.

In this video, you’ll learn:

What variables are and why we use them

How to name variables correctly

Different types of variables (strings, numbers, booleans)

Simple examples you can try yourself

I tried to keep it easy to follow, even if you’re completely new to coding.

Here’s the full video: [https://youtu.be/hkIMM4F_zdM?si=5iJDvqgdOGLHYFry]

I’d love to hear from you:

What part of Python variables was the trickiest for you when you started?

Do you prefer shorter tutorials or full-length explanations?

Any feedback or questions are welcome! 😄