title: Project including dictionary, loops, user input and factorial
body: <p>I am writing a program in order to determine what are the probability of 2 songs of a same album playing back to back in a shuffled playlist.</p>
  <p>For that I will be using the functions listed in the title:</p>
  <ul>
  <li>User input (to make it interactive with a user)</li>
  <li>for loop (to have the user add as many values as needed)</li>
  <li>dictionary (to store the user's input and add maths to it later)</li>
  <li>Factorial (to transform each user input into a percentage related to the total of songs in such playlist)</li>
  </ul>
  <p>My issue is that I do not know how to structure my code: I have been doing good with the user input phase, but to add those imputed values into a dictionary is where I'm stuck. All the solutions online are provided for a dictionary alone and not in complement or addition of a for loop.</p>
  <p>Here is my code:</p>
  <pre><code>import math
  import statistics
  
  print(&quot;\n Hey user! this bot has for purpose to tell you the probability of \n
  playing a song of the same album in a shuffled playlist. \n&quot;)
  total_songs = int(input(&quot;\n Enter the total of your songs:&quot;))
  
  lst = []
  num = int(input('Enter a number of albums: '))
  for n in range(num):
      numbers = int(input('Enter number of song for each album: '))
      lst.append(numbers)
  print(&quot;Sum of songs belonging to an album is :&quot;, sum(lst))
  print(lst)
  
  print(&quot;\nLet's find out the songs that don't belong to any album. This will be handy later:&quot;)
  
  solo_songs = total_songs - sum(lst)
  print(int(solo_songs))
  
  
  print(&quot;Nice! Now we need to find out the probabilities of 2 songs of the same album playing back to back in shuffle mode&quot;)
  
  #Each album needs to be considered 1 entity and to that, the solo_songs value needs to be multiplied by itself -1 until 0
  #to respect the probability formula
  </code></pre>
  <p>I do not know where to put my dictionary block, before or after my loop? How to add the user inputs into the dictionary simply?</p>