I'm just trying to make a simple, beginner dice project in Python. And I'm trying to step it up a bit by displaying random number kinda like a countdown timer in one line in terminal. For example like a dice in the link below but in numbers.
The link: https://rolladie.net/
The code:
import random
dice = ['1','2','3','4','5','6']
throwing = True
while throwing:
throw_dice = random.choice(dice)
if throw_dice == '1':
print("You landed on 1!")
if throw_dice == '2':
print("You landed on 2!")
if throw_dice == '3':
print("You landed on 3!")
if throw_dice == '4':
print("You landed on 4!")
if throw_dice == '5':
print("You landed on 5!")
if throw_dice == '6':
print("You landed on 6!")
throw_again = input("Want to throw again?(y/n)\n")
if throw_again == 'y':
throwing = True
else:
quit()
Is it possible to do it? Thanks in advance to anyone answering my question. Sorry if my question kinda weird and hard to understand.