Beginner Dice Rolling Simulator Using Python (Source Code @ Description) in 4 Mins | Python World

Pubblicato il: 03 gennaio 2021
sul canale di: Python World
63
6

This Video helps you to learn learn Python using a simple Python game.This Tutorial gives step-by-step Analysis to Build a Dice Rolling Game Using Python.
_______________________________________________
Source Code :
import random as rd
import time as t

tit = 'Dice Rolling Simulator'
print(tit.center(83))

ch='y'

while ch in ['y','Y']:
roll=input('Type as "roll" to roll the dice :')
if roll=='roll':
x=rd.randint(1,6)
print('\n\nRolling Dice...')
t.sleep(3)
print('\n\nYou rolled and get',x)
ch=input('\n\nDo you want to roll again(y/n)')

print('\n\nThanks for playing the Simulator\n\n')
___________________________________________________________
Video Link :    • Beginner Dice Rolling Simulator Using Pyth...  

PLEASE SUBSCRIBE,LIKE AND SHARE THIS VIDEO AND CHANNEL.
Music by NCS
Music :Electronomia (Sky Release)
Music Link:    • Elektronomia - Sky High | Progressive Hous...  


In questa pagina del sito puoi guardare il video online Beginner Dice Rolling Simulator Using Python (Source Code @ Description) in 4 Mins | Python World della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Python World 03 gennaio 2021, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 63 volte e gli è piaciuto 6 spettatori. Buona visione!