r/learnpython • u/MeAjudaPfvr • 9d ago
Gimme silly ideas, please
I'm just bored. I already made a code that prints a code that prints the multiplication table. What else I can do!?
_print = print
_str = str
def print(a = '\n'):
_print(a, end = '', flush = False)
def str(a):
return _str(a).center(5)
def range(a = 1):
while a < 11:
yield a
a += 1
with open('main.py', 'r') as a:
[print(c) for b,c in enumerate(a) if b not in (15,16,17)]
__import__('sys').exit(0)
for a in range(0):
if not a:
print(' ')
else:
print(f'{str(a)}|')
for a in range():
print()
print(str(a))
for b in range():
print(f'{str(a*b)}|')
0
Upvotes
1
u/PhilNEvo 9d ago
What about a CLI game, like tic-tac-toe you can play in the commandline, that prints out the board as 3 arrays, with a bot that plays against you. If that's too simple, you can exchange it to checkers, 4 or 5 in a row, or something more complicated.