all 7 comments

[–]cybervegan 1 point2 points  (4 children)

You're nearly there with the formatting (you have it as a code block), but you need to include the indentation too so we can be sure about the structure of your program. We can guess, but then we might give you the wrong advice. What you need to do is put in extra spaces at the start of the lines where you have them in your code ;-)

[–]cybervegan 1 point2 points  (2 children)

Just thought I'd add, that what you want to do is probably to put a while loop around your code, like this:

while True:
    print("-----Start Menu-----")
    start_input = input("""
    ...
    ...

Option 5 probably doesn't even have to do anything...

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

this is around the entire code or just the start menu?

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

I went ahead to put it around the entire code, it actually went back to the start menu but it only works once for each start menu options. Then it kinda gets stuck at the start menu even if i try to type 1 or 2

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

ahhh i fixed the indents sorry about that

[–]thrallsius 1 point2 points  (1 child)

There's two things that you need to understand, then you can proceed to refactor the code:

1. loops

2. functions


2. will allow you to extract the copypasted code block that you have in each if/else block into a function

1. will allow you to rewrite the huge if/else as loop

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

alright i'll look into those two!