This is my current code:
import random
while True:
try:
num = int(input("Enter the total number of digits you want to generate:"))
upper = int(input("Enter your highest number:"))
lower = int(input("Enter your lowest number:"))
if upper < 1 or lower < 1 or upper <= lower:
print ("Sorry, invalid. Make sure your upper bound is higher than lower bound, make sure all numbers are integers greater than 0.")
continue
if num < 1:
print ("Sorry, invalid. Try again.")
continue
**mylist = [0] * num
for x in range (lower, upper):**
The part directly above here is the part that I am not quite sure how to go forward on. I want to generate random numbers depending on the number the user enters and within the upper and lower bounds that the user enters into a list that displays here. Can someone guide me through this? thank you!
except:
print ("Sorry, invalid. Try again.")
else:
print ("Thank you.")
break