Python random numbers 🎲

Published: 30 November 2020
on channel: 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...  
––––––––––––––––––––––––––––––


On this page of the site you can watch the video online Python random numbers 🎲 with a duration of hours minute second in good quality, which was uploaded by the user Bro Code 30 November 2020, share the link with friends and acquaintances, this video has already been watched 20,540 times on youtube and it was liked by 1.1 thousand viewers. Enjoy your viewing!