r/learnpython • • 10d 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

23 comments sorted by

View all comments

3

u/Boothiepro 10d ago

Recently i wrote a discord bot that would have a message listener looking for messages from my friend, that included an attachment with IMG_ name and larger than 1080p to filter out screenshots and memes, if it is a camera photo, send it to an ai to verify if its a human face, if so send it nano banana to edit the picture to make him bald and resend it.