Python random numbers 🎲

Pubblicato il: 30 novembre 2020
sul canale di: Bro Code
20,540
1.1k

Python random numbers module tutorial explained

#python #random #numbers

import random

x = random.randint(1,6)
y = random.random()

myList = ['rock','paper','scissors']
z = random.choice(myList)

cards = [1,2,3,4,5,6,7,8,9,"J","Q","K","A"]

random.shuffle(cards)

print(cards)

––––––––––––––––––––––––––––––
Up In My Jam (All Of A Sudden) by - Kubbi   / kubbi  
Creative Commons — Attribution-ShareAlike 3.0 Unported— CC BY-SA 3.0
Free Download / Stream: http://bit.ly/2JnDfCE
Music promoted by Audio Library    • Up In My Jam (All Of A Sudden) – Kubb...  
––––––––––––––––––––––––––––––


In questa pagina del sito puoi guardare il video online Python random numbers 🎲 della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Bro Code 30 novembre 2020, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 20,540 volte e gli è piaciuto 1.1 mille spettatori. Buona visione!