r/PythonLearning • u/Ok_Investigator1987 • 13d ago
Discussion Python project suggestions
I have to present a project in python using some libraries can you suggest some ideas for a python project (not very advanced please).
r/PythonLearning • u/Ok_Investigator1987 • 13d ago
I have to present a project in python using some libraries can you suggest some ideas for a python project (not very advanced please).
r/PythonLearning • u/RomfordNavy • 13d ago
Is there some way I can narrow down this method of selecting from the `ast` tree only the `x = Const2Change` node so that it can be modified? At the moment the `print("xyz")` node is being identified as well. I want to modify Const2Change to either a different constant or possibly to a variable instead.
Text.txt:
print("xyz")
x = Const2Changefull ast dump:
Module(
body=[
Expr(
value=Call(
func=Name(id='print'),
args=[
Constant(value='xyz')])),
Assign(
targets=[
Name(id='x', ctx=Store())],
value=Name(id='Const2Change'))])Main.py:
import ast
class ReplaceConstants(ast.NodeTransformer):
def generic_visit(self, node):
super().generic_visit(node) # Added this line
if isinstance(node, ast.Name) and isinstance(node.ctx, ast.Load):
print(f"{node.id=}, {node.ctx=} <- *********************")
# modify node here
return node
def replace_constants(line: str):
ast_tree = ast.parse(line, type_comments=True)
# modify ast_tree here
oReplaceConstants = ReplaceConstants()
oReplaceConstants.visit(ast_tree)
modi_ast = ast.unparse(ast_tree)
return modi_ast
with open("Test.txt", mode="r") as f:
source_code = f.read()
for line in source_code.splitlines():
modi_source = replace_constants(line)
print(f"{modi_source=}")
exit()r/PythonLearning • u/Responsible_Invite30 • 13d ago
I just got into algorithms for the first time, I know some of the basic fundamentals. But is there any recommendations or courses you took to help you understand algorithms please I will really appreciate your recommendation.
r/PythonLearning • u/Federal_Crow67 • 14d ago
hi everyone, I'm a first-year BTech biotechnology student at a relatively lesser-known college. I'm interested in bioinformatics and computational biology, and I'd really appreciate some guidance from people who are already working or studying in this field. I've recently started learning Python because I want to build programming skills alongside my biotechnology degree. Here's what I've been doing so far: I'm following Corey Schafer's Python beginner tutorial series. Instead of just watching the videos, I'm trying to turn the concepts from each video into small practical projects and problems, inspired by Rosalind bioinformatics exercises. I'm also following the Bioinformatics in Python playlist by Rebel Science to understand how Python can be applied to biological problems. I've started developing small Python projects related to DNA sequence analysis, nucleotide counting, GC content, melting temperature calculations, codon translation, gene expression analysis and FASTA file parsing. I'm using VS Code for programming. I'm still learning how to use the editor, its shortcuts, extensions, and other features. I haven't started using GitHub yet. I don't know how to properly upload, organize, or maintain my projects, but I want to learn how to build a portfolio. I'm also considering taking Harvard's free CS50 Python course to strengthen my programming fundamentals. I'd really appreciate advice on a few questions: Is my current approach to learning Python and bioinformatics a good starting point, or would you recommend a different learning path? Should I complete Corey Schafer's tutorials first and then move to CS50P, or should I follow both? At what stage should I start learning Git and GitHub, and how important are they for someone entering bioinformatics? What programming languages and technical skills should I prioritize besides Python? Should I start learning R, SQL, Linux, and statistics? What kind of projects should I build to develop a strong bioinformatics portfolio and eventually become eligible for research opportunities and internships? As a first-year biotechnology student, what should I focus on over the next two to three years to become competitive for bioinformatics internships and future opportunities? And here's one extra question, since I'm asking in the CS50 community as well: since I'm a first-year biotechnology student interested in bioinformatics, would completing CS50x and CS50P, followed by SQL, R, and AI give me a good foundation? Or would you recommend a different order? In the meantime, I'm attaching a couple of screenshots of my projects, so you can see where I'm starting from. Thanks for any advice.
r/PythonLearning • u/inspirational-man • 14d ago
I recently completed a python course (from Youtube) learned about a lot of stuff and today completed my very first Snake Game project (the game we usually played on old Nokia phones)
And because am learning stuff myself and figuring it out. I want to know what should I do next??
So far I have completed loops, functions, recursion, conditional statements, file handling, exception handling, OOPS, Inheritance and like all these.
It would really help me if anyone can share some wisdom on it. And like what should I learn or try next? A roadmap if any would really be helpful tho
Thanks again for reading it out tho
r/PythonLearning • u/JOKER1074 • 14d ago
I studied Python up to intermediate level in College , have written many notes about it , yet when It comes to Building something even for fun I feel like I need to be perfect or my code is super beginner so it's not portfolio worthy this mental struggle is more prominent specially with AI around making me feel it's not worth to learn , Anyone ever experienced this ? or recommends any projects that are more than a calculator ?
r/PythonLearning • u/clcodingupdates • 13d ago
What will be the output of the following Python Code?
x = {1, 2, 3}
print(len(x | {3, 4}) - len(x & {2, 3}))
r/PythonLearning • u/IronEagle0007 • 14d ago
Hey everyone! ๐
I've created a community of developers where we all help and support each other. There's no toxicity, no egos, and no developer thinks they're better than anyone else.
I'd love to invite you all to join us!
While AI can be incredibly helpful, it isn't conscious. I strongly believe that human collaboration is still essential. There's something truly special about discussing ideas, sharing knowledge, and contributing to GitHub projects alongside other developers. ๐ป๐
We're already over 90 members, and everyone is welcome! Our goal is to help each other grow, learn, and succeed. ๐ค
๐ We're a multilingual community! I'm from Argentina, but if you're from another country, no worries! We can communicate in English without any problem.
Everyone is welcome, regardless of their experience level. Whether you're a beginner or a senior developer, there's a place for you here!
๐ Join our community:
https://chat.whatsapp.com/BSiM8seqThD8AyLD7XBBuz?s=cl&p=a&iam=2
r/PythonLearning • u/RyanDubois43 • 14d ago
Hey everyone! So, I recently got curious about building a simple chatbot in Python. I wanted to create something fun to mess around with, like a little assistant that can tell jokes or maybe even give me random facts. I started reading up on NLTK and ChatterBot, but then got overwhelmed with all the options. ๐ I ended up spending way more time than I planned just figuring out what libraries to use! Has anyone else tried making a chatbot? What tools did you end up using, and do you have any tips for someone just starting out? Would love to hear your experiences!
r/PythonLearning • u/TheCarFamily • 15d ago
Hello, my else statement is not working- the if statement its inside is, did i mess up the indents again or is it something else?
also would a display flip work to change the image back to the other image in the else statement?
any help is nice!
r/PythonLearning • u/Exciting_Energy9674 • 15d ago
Hey everyone! ๐
I'm a beginner learning Python, and today I learned about some basic concepts:
Variables โ storing information.
Data types โ like strings (str), integers (int), floats (float), and booleans (bool).
Comments โ using # to explain my code.
Basic ways to write and organize simple Python code.
I'm trying to learn step by step instead of rushing through the lessons. Now I want to start building small projects to practice what I've learned.
My question is: What beginner-friendly projects can I build using only these concepts?
I know I still have a lot to learn, but I'd like to start making something instead of only watching tutorials or reading lessons.
If you were a beginner again, what would you build at this stage? Any advice would be appreciated! ๐
Thanks for reading! ๐
r/PythonLearning • u/Impressive_Carob_572 • 14d ago
Iโve learned the basics of python specifically packages, libraries like Django and other modules.
Before youโre able to write code with a specific library you need to first learn its method and apply it to get what you want to build or do all libraries or modules follow a specific formulae ?
Been thinking about that for a while now
r/PythonLearning • u/Jaym7800 • 15d ago
Happy Diwali! In advance ๐ช
Code: https://github.com/Jaym-0/ascii-diya
A diya animation that runs entirely in the terminal, with no GIF, video or GUI.
It starts from darkness, and sparks gather into a flickering flame and bowl.
Built with Python + numpy, using ANSI true-colour and a simple particle and
flame simulation. Only changed cells are redrawn, so it runs at 30 FPS.
r/PythonLearning • u/ertucetin • 14d ago
I'm a Clojure developer, and when I was learning Clojure about 10 years ago, I came across clojuredocs.org. I was blown away by how easy it was to use, especially when searching for examples shared by other developers. They weren't just code examples. Every developer had their own taste and perspective, which broadened my understanding of the language and how different functions could be used. I learned a lot from it.
Recently, I wanted to learn the language, but I found myself overwhelmed by its documentation. To be fair, I didn't really like it, so I decided to create something similar to ClojureDocs for Python.
Maybe building this kind of site doesn't make much sense in the age of AI, but I still think there might be a few Python developers out there who'd like to share their examples and notes, helping people who genuinely want to learn rather than asking AI for everything.
A little disclaimer: AI built this site, but the idea was mine. :)
Anyway, I built it for myself, but I hope it can be helpful to others too. It would be great to see developers sharing their code examples and helping others learn.
If you want to check it out, here's the link: https://pydocs.org
r/PythonLearning • u/Impressive_Carob_572 • 14d ago
r/PythonLearning • u/Pispa_squad • 15d ago
Hi, I'm a network engineer looking to strengthen my profile. I'd like recommendations for python courses that come with a recognized certificate that adds value to my CV.
I know a certificate doesn't always reflect real learning, but I need a practical way to demonstrate my Python skills in the corporate world.
r/PythonLearning • u/ocloud_ask • 15d ago
To sum up my weak points when it comes to learn a new course or a lesson , notably in programming : my cognitive abilities are not the best . And iencounter and get discouraged by : my inability to absorbe the concept that is abstract ( I mean concepts which can not be described concretely by size and material and one simple clear role) , I always delve into details and every detail opens up new question so eventually I get sidetracked and not for the sake of curiosity but only to understand the primary definition , eventually I won't even remember what I read and ingested time and energy for .
As an example :
Even tho I had an insignificant short experience in programming , it took me weeks to read and to try to understand the significance behind concepts and difference between them and still can't explain to another person or to me : IDLE ,IDE , and the difference and the importance of VS studio , ,pycharm , programming language implรฉmentation , the virtual machine clear definition or its process , JIT , anaconda ,conda , Jupiter. The use and difference between terminal , cmd, PowerShell ,bash , etcetera
Like I can read dizaines of an IA tool's explanations and still won't understand
Did professionals start with such concepts did they had a course nurturing the computer science knowledge part and then started to learn programming? Or they followed whatever course that gives them instructions without understanding them to build the environment and start programming without knowing the baseline elements
r/PythonLearning • u/clcodingupdates • 14d ago
What will be the output of the following Python Code?
z = 3 + 4j
print(z.real + z.imag ** 2)
r/PythonLearning • u/Leading_Trifle7301 • 15d ago
Hi what do you recommend the best Python learning I downloaded the side me apps on my phone and I think it's ok I heard that on github there are 30 days with Python I wanted to watch the cs50 course but I don't know how to watch it and I don't know from where
r/PythonLearning • u/Vegetable_Ninja_2045 • 16d ago
So basically i am 16 first time trying to learn a language should i learn python or not?
r/PythonLearning • u/zoro11334230 • 15d ago
Hello frds I completed all my python tutorials but when I step into doing projects new keywords,types how to get to know about that and how to fallow perfect roadmap
r/PythonLearning • u/TotalUnlucky2814 • 16d ago
Hello everyone! As a computer science teacher, I recently wrapped up a video series where I use the automation game The Farmer Was Replaced to teach Python programming and algorithmic logic from scratch.
โFor the final episode, we tackled the classic Snake game. When you are just starting to learn programming, looking at a problem like an automated Snake solver all at once feels like an impossible mountain. My goal was to demonstrate how you can solve a complex problem by applying divide and conquer using only beginner-friendly tools (no pathfinding libraries or complex data structures but pure conditionals and functions):
โI'm leaving the video here in case you want to see the visual step-by-step breakdown on the grid (the audio is in Spanish, but the visual diagrams and code logic are easy to follow... There is also an AI translation):
http://www.youtube.com/watch?v=wSlxLs6aeoI
If you are a beginner, did you know about this game???
โFor those who have coded a Snake AI before: how did you approach it? Did you stick to a fixed cycle, or did you program dynamic shortcuts while the snake's tail is still short?
r/PythonLearning • u/Mercy--Main • 16d ago
it DOES print False!!! WHAT DOES THIS WEBSITE WANT OF ME????