title: How do I create something that loops?
body: <p>Im making a project for fun, and created a program that when I first made it a few months ago was ment to be infinite. How do I make it loop without making it copy and paste itself over and over?</p>
  <h1>This part is to create a log in sequence.</h1>
  <pre><code>if Type == &quot;Admin&quot;:
        Username = input(&quot;Username: &quot;)
        if Username == &quot;Admin&quot;:
            time.sleep(1)
            Password = input(&quot;Password: &quot;)
            if Password == &quot;Pass&quot;:
                Help = input(&quot;Correct. Logged in. What would you like to do now? Type help for options. &quot;)
                if Help == &quot;help&quot;:
                    print(&quot;Here's a list of things you can run.&quot;)
                    print(&quot;Paycheck, Status&quot;)
                    Command = input(&quot;Which command would you like to run? &quot;)
                    if Command == &quot;Paycheck&quot;:
                        print(&quot;You are currently being payed $0.&quot;)
                        time.sleep(5)
                    if Command == &quot;Status&quot;:
                        print(
                            &quot;2 members online currently. Servers open: Admin and User. Users online: &quot;
                            &quot;Admin, &quot;
                            &quot;User.&quot;)
                        time.sleep(5)
                if Help == &quot;Status&quot;:
                    print(
                        &quot;2 members online currently. Servers open: Admin and User. Users online: &quot;
                        &quot;Admin, &quot;
                        &quot;User.&quot;)
                    time.sleep(5)
                if Help == &quot;Paycheck&quot;:
                    print(&quot;You are currently being payed $0.&quot;)
                    time.sleep(5)
  </code></pre>
  <h1>Here I want it to once again ask what command they want to input, and never stop asking</h1>