All Questions
5 questions
5votes
1answer
76views
Othello game in Tk
I've recently reached a milestone for my Othello clone. This is my first Python project and the farthest I've come to a full program beyond small scripts and little automations. I'd love for you to ...
6votes
2answers
784views
Implementing web scraping in a function and in a class
The goal of my code is to implement a web scraping routine to obtain the name and the price of a product. I want to put this routine separated from the main program file. Sample url to scrape: https://...
10votes
1answer
1kviews
State and Borg design patterns used in a Telegram wizard bot
I'm making a sort of a user interface for a telegram bot and my idea was to use State design pattern for making sort of a wizard for all the process, with user inputting data in each step or pressing /...
10votes
3answers
39kviews
Text-based Blackjack game in Python
I am new to programming in Python and wrote a simple Blackjack project. I am looking for experienced peers to provide a high level code review about the overall design patterns and proper usages. The ...
1vote
1answer
320views
Lazy prime counting function [closed]
I have written a simple snippet of code that implements a function that returns a list of primes up to a certain integer n. Assuming that this function could be ...