I am fresh to coding and python. As a beginner, I've started working on small projects. I've worked on Mosh's dice rolling game with this code: import random while True: choice = input("Roll the dice? (y/n): ").lower() if choice == 'y': die1 = random.randint(1, 6) die2 = random.randint(1, 6) print(f'({die1}, {die2})') elif choice == 'n': print("Thanks for playing!") break else: print("Invalid choice!")` Short, sweet and simple. He had another version of this project that challenged us to modify the program so the user can specify how many dice they want to roll. In my head, the challenge is looking for a dynamic output based on the number of dice the user specifies they want to roll. I'm reading that challenge as something like this: import random while True: choice = input("Roll the dice? (y/n): ").lower() if choice == 'y': userInput = int(input("How many dice would you like to roll? ")) x >= int(1) if userInput == x: die1 = random.randint(1, 6) print(f'({die1}') elif userInput == '2': die2 = random.randint(1, 6) print (f'({die1}, {die2})') elif userInput == '3': die3 = random.randint(1, 6) print(f'({die1}, {die2}, {die3})') elif userInput == '4': die4 = random.randint(1, 6) print(f'({die1}, {die2}, {die3}, {die4})') elif userInput == '5': die5 = random.randint(1, 6) print(f'({die1}...{die5})') elif userInput == '': elif choice == 'n': print("Thanks for playing!") break else: print("Invalid choice!")` I'm stuck in a few places. I'm wondering if there is an easier way to produce a dynamic output based on what integer the user enters that doesn't require me to hard-code all of the "die" outputs. Maybe I need a forLoop, a nested loop. I'm not sure. **P.S. I'm aware that my code seems unfinished because I got stuck and my brain started to glitch. Continue reading...