title: Trying to create a Password Generator that can save passwords
body: <p>I have created the baseline of the program, and it works well, but I want it to be able to save the password generations, and store them under an index name in SQLite. I want it to be so that I can always access the previously generated passwords.</p>
  <p>Code:</p>
  <pre><code>    def gen_password():
          letters = string.ascii_letters
          random_letter = random.choice(letters)
          random_num = random.randint(0,9)
          letter_or_num = [&quot;letter&quot;,&quot;number&quot;]
          char_num = int(input(&quot;How many characters do you want in your password?: &quot;))
          for i in range(char_num):
              random_var = random.choice(letter_or_num)
              if random_var == &quot;letter&quot;:
                  random_letter = random.choice(letters)
                  print(random_letter, end = &quot;&quot;)
              elif random_var == &quot;number&quot;:
                  random_num = random.randint(0,9)
                  print(random_num, end = &quot;&quot;)
          print(&quot;&quot;)
      
      gen_password()
  </code></pre>