Cycle detection in directed graphs, topological sort, Kahn’s algorithm. These are the ones that feel simple until you’re implementing them and something quietly goes wrong. Same idea as BFS: try to ...
30 days. 4 contests. One shot at proving I actually know this stuff. I’ve been on Leetcode for a while. 194 problems solved, 104 active days, a max streak of 27. On paper, it looks decent. But my ...
Let’s take a quick walkthrough of the most used methods of list in Python. The shopkeeper is quite mechanical. He does the stuff as ordered without giving any second thought. Because you don’t want ...
Welcome to the 200th article on python-hub.com! For this milestone, we’re bringing you something special as part of our Build & Challenge Series—a Real-Time Rock-Paper-Scissors Game in Python. For ...
Welcome to Day Six of my 21-day project series! Now, as a blogger, I at least need to convert 4-5 PNG to WEBP images. Though there are a lot of free tools online none of them convert images in bulk. I ...
Hello Pythonistas, in this article I’ll provide a solution to the challenge I provided in this article. At the end of that article, I presented a challenge to deepen your understanding of OOP by ...
Imagine this: it’s a cold night, and you’re all set to play Ludo with your family. But every time you need to roll the dice, it means pulling your hands out of those warm pockets – not exactly ...
Welcome to Day Nine of my 21-day project series! Today I have made A Random Wikipedia Article Generator GUI. I am a curious kid so I like to read new stuff that is not based on my past preferences ...
What is grid() in Tkinter? Okay, imagine your app is like a spreadsheet. You’ve got rows and columns. With grid(), you can tell Python: “Hey, I want this button in row 1, column 0.” And boom! It lands ...
One thing to note here is you can also use double triple quotes for multiline strings(""" """ like this). Do you remember I said(ok wrote) there is something called unassigned strings in this post?
Welcome to Day Eight of my 21-day project series! Today, I have made a pretty simple and fun Number-Guessing Game In Python. It is not a GUI, not an AI. Just a simple guessing game. This mini-project ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results