r/PythonLearning • u/clcodingupdates • 13d ago
Python Quiz of the Day.
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/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 • 16d 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 • 16d 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????
r/PythonLearning • u/slightlypug • 16d ago
hi so I recently made a post asking people if they wanted to learn Python, Git/GitHub with me and so many people responded I thought that I would make a discord for people to join and work on group projects with me. join if you're interested! https://discord.gg/ysbgcD8Baf
r/PythonLearning • u/Ok_Aioli2605 • 16d ago
I am loading few large size binary files (70 MB19 nos. look_up tables) in Main using more than 2/3 python files. On completion of the loading, I have to take up a series of search (in 3 or more threads) and arrive at the solution. I am using array.fromfile for loading which does not wait for loading completion. Hence, it fails saying array out of bounds. How do I delay the start of search, just till the loading is completed.
r/PythonLearning • u/clcodingupdates • 15d ago
What will be the output of the following Python Code?
table = str.maketrans("abc", "123")
print("cabaca".translate(table))
r/PythonLearning • u/Exciting_Energy9674 • 16d ago
Hey everyone! π
I'm a complete beginner in Python programming. I want to become a software developer in the future, but honestly, sometimes I feel confused about what I should learn next and how to continue learning.
I know a little bit of Python, but I still have a lot to learn. Sometimes I don't know what to practice, what projects to build, or how to improve my programming skills.
I'd love to get some advice from experienced programmers!
What should a complete beginner focus on first?
How can I practice Python effectively?
What small projects should I build as a beginner?
How do I know when I'm ready to move to the next topic?
I also have an idea! π‘
I'd like to create a small group for people who are just starting to learn Python, especially those who feel confused or don't know where to begin, just like me.
r/PythonLearning • u/RomfordNavy • 16d ago
Splitting an empty string without a specified delimiter works as expected and returns an empty list. However when splitting an empty string with a delimiter specified returns one (empty string) item in the list, is there some way to make that return an empty list as per the no-delimiter result?
print(f'{"".split()=}') # = []
print(f'{"".split(" ")=}') # = ['']
print(f'{"".split(",")=}') # = ['']Problem is this causes an unwanted iteration of a for loop:
str = ""
for item in str.split(" "):
print(f"{item=}") # unwanted itemr/PythonLearning • u/Fun-Philosopher-8443 • 17d ago
i am new and i want to learn python do you know where i can learn it for free . any help