Skip to main content

All Questions

Tagged with
8 votes
1 answer
501 views

Battleship vs. computer with Python

I am still pretty new to Python. After spending time on Code Wars and copying a handful of projects from Al Sweigart's Big Book of Small Python Projects, I wanted to build something completely from ...
Jessica Monnier's user avatar
4 votes
2 answers
286 views

Simple size difference measuring tool

Simple tool I wrote in an hour or two (I'm not very fast, but I eventually get there - also for the "spending 6 hours to save 6 seconds" meme). Would've written this in shellscript given ...
404 Name Not Found's user avatar
0 votes
1 answer
75 views

Reassure user that python code is running during long imports

I have created a large module for downloading data from SAP and editing and displaying it on a plotly dashboard. While the code is running as desired there is one problem that bugs me: The submodules ...
Jan_B's user avatar
  • 127
1 vote
1 answer
97 views

Sports league creation script

I'm building a little game that lets you generate a random sports league with random teams and random rosters. What are some ways that I can improve the readability and performance for this code? Main ...
code writer 3000's user avatar
3 votes
1 answer
172 views

Yet another CLI Hangman game

...with properly packaged/type-hinted code, automated testing, and no dependencies. Do note that this package requires Python 3.12 or later. Only pyproject.toml and ...
InSync's user avatar
  • 219
4 votes
2 answers
224 views

A Python terminal

This is the code for Pylect, a Python terminal I worked on a while ago which also caused my Desktop to get destroyed because of bad code. I use it infrequently but I would like a review for the code ...
The_AH's user avatar
  • 235
3 votes
1 answer
138 views

Highly flexible tic-tac-toe terminal game in python

I have created a two-file tic-tac-toe game, with board.py containing most of the internal workings of the playing board. I intended to have ...
yrjarv's user avatar
  • 141
4 votes
0 answers
73 views

Manage have-read and want-to-read books and series

I am building this program to keep track of the books I have read and the series I want to read, and I would like help on improving the user interface. ...
coolcoder613's user avatar
2 votes
1 answer
569 views

Model-View-Presenter (MVP) pattern implementation

To learn more about design patterns, particularly the Model-View-Presenter (MVP) pattern, I am currently creating a CLI weight tracker application in Python. I would like you to review the code to ...
J. Lo's user avatar
  • 43
1 vote
0 answers
118 views

Python CLI tool - automatic mapping from models to parameters with Click

I was working on a small python CLI tool using the Click library for the first time and realized I was defining parameters and mappings from them to objects/classes in multiple places and anytime I ...
Coupcoup's user avatar
  • 1,066
3 votes
1 answer
203 views

Implementing Model-View-Presenter in a console program [closed]

I'm designing a board game with my wife, and am writing a console based program that can track and analyze the statistics of playtests to see if the game is balanced, what the dominant strategies are, ...
Jan van Wijk's user avatar
3 votes
1 answer
156 views

Terminal Based Blackjack

This is my attempt at a terminal based blackjack game. Currently, the game does not support betting, although I intend to add it in the future. I would very much appreciate general feedback, but I am ...
Katie Grace Porter's user avatar
0 votes
1 answer
161 views

Text based naval game

here is the second game I have made. its not easy and I was hoping someone could test it and bring some improvements to the table. fun project for learning. ...
codec's user avatar
  • 27
8 votes
5 answers
2k views

Python code using *args to print warnings in color

I have this code, which works for the simple tasks I want. But I have questions. ...
aschultz's user avatar
  • 351
3 votes
1 answer
150 views

Python command line password generator

After giving a couple of well-received answers to similar questions, I thought I'd try to come up with my own solution. I believe that a good password generator can and should be quite simple without ...
gazoh's user avatar
  • 3,359

15 30 50 per page
1
2 3 4 5
12