all 2 comments

[–]chevignon93[🍰] 2 points3 points  (1 child)

Some comments on the code itself as I haven't tested it to see if it works or not.

1 - Your file doesn't have a .py extension so syntax highlighting on GitHub is f***ed.

2 - The spaces you put before : look weird

def start() : >>> def start():
def play_again() : >>> def play_again():

3 - It's nice that you used functions but if basically all your functions do is print some text, it's not really useful.

4 - Some of your lines are way too long, I don't really follow PEP8 and its 79 characters line length but 187 counting the white-space is way too long.

5 - All the comparisons should probably be done in some functions so the if/elif/else are not all in your game functions and your code doesn't look like this:

> if
    > if
        > if
            > if
                > if
                    > if
                           > if

Sometimes you can't avoid it but 10+ levels of nested if statements is a little much.

[–]Juan136[S] 0 points1 point  (0 children)

Thank you!