I Get an unlimited While Loop In python here's The Code For My Rolling Dice It keeps Rolling The Dice Over and over Again the Code :
#!usr/bin/python
# -*- coding: utf-8 -*-
import random
import time
import sys
print ("")
print ("This is a dice rolling simulator ")
x=raw_input("press Enter to launch the dice ")
def dice():
print("\nRolling the dice...\n")
time.sleep(1)
n=random.randint(1, 6)
if n == 1:
print '''
1
'''
if n == 2:
print '''
'''
if n == 3:
print '''
3
'''
if n == 4:
print '''
4
'''
if n == 5:
print '''
5
'''
if n == 6:
print '''
6
'''
dice()
x=raw_input("press Enter to restart the or type q to quit")
while x!= ("q"):
dice()
if x== ("q"):
print ("see you later ")