I am working on a simple program that is basically just dice, I am using Thonny as my IDE and the program works fine in there but when I try and open the .py file the question comes up then I type something and the window just closes. Any help is appreciated.
import random
#-------------------------
print("Made by Thr i ving")
roll = input("Type roll to roll the dice: ")
if roll == 'roll':
nums = ['1', '2', '3', '4', '5', '6']
print("Your number is: " + random.choice(nums))
else:
print("Try again.")