my meme github repo of python scripts

Comments

I know this is your first python script and a meme, but I can help offer a little improvement into the functioning of it.

Firstly, the two separate if statements aren't the best way to account for capitalized vs un-capitalized, and actually its broken.

If you reply with lowercase "yes" it jumps to the else statement, so it replies with both responses you've set.
The very least you'd need to do to fix this would be turning the second If statement into an Elif statement. Elif stands for Else If, it's kind of like a "sub-if" if you will. It's connected to the main if statement and will not trigger the else statement unless either if condition isn't met.

Additionally, you can simply turn both of your Ifs into a single If, like so:

Code:
if answer in ('yes','Yes'):
    print("Epic we will see you soon for that epic victory royale!")
    time.sleep(3)

Hopefully this helps, now let's get that victory royale :D
 
  • Like
Reactions: 1 person
@ry755 steam was about 10ish minutes
@CitizenSnips thanks for the useful help will update soon
 

Blog entry information

Author
Tizm
Views
197
Comments
4
Last update

More entries in Personal Blogs

More entries from Tizm

General chit-chat
Help Users
    Materia_tofu @ Materia_tofu: https://youtu.be/yzS5lWz0eII?si=jMlZOQEmoAMoxeco