I have to ask the user how many numbers they want to generate and then i can generate integers according to them in the range of 0 to a 100. If the user wants 5 numbers I have to generate 5 random numbers, but have no clue how.
input("How many numbers should the string consist of? ")  #The user gives a number
for i in range(4):                 # I used a 4 but its going to be the users input
    print(random.randint(0, 100))  #The integers will print
Afterwards I have to calculate the total of all the integers generated, The total is: sum of generated integers.
 
     
     
    