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
212
Comments
4
Last update

More entries in Personal Blogs

  • 4: Reddit
    Finally, number 4! Never thought this day would come, did you? Uhh...
  • books
    1. I am cool as hell, have one million dollars 2. I am banned from...
  • Syncthing is fun!
    Having been kinda active in an Android forum I quickly got sick about...
  • Feeling at home here
    Not much to say this time. I'm depressed. Like almost always. Trying to...
  • I'll start, rate mine 1-10
    It's a very mixed bag, some rock, some rap, some video game music, a...

More entries from Tizm

Share this entry

General chit-chat
Help Users
  • Xdqwerty
    what are you looking at?
  • BakerMan
    I rather enjoy a life of taking it easy. I haven't reached that life yet though.
  • NinStar
    Xdqwerty @ Xdqwerty: @BakerMan, tell your parents to stop mating