From d30b131f9145826853da9bbbd235204ddbb768d7 Mon Sep 17 00:00:00 2001 From: deepcodespythonmorethenu <72375257+deepcodespythonmorethenu@users.noreply.github.com> Date: Fri, 16 Oct 2020 10:33:48 +0530 Subject: [PATCH] random module tutorial create --- random module tutorial | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 random module tutorial diff --git a/random module tutorial b/random module tutorial new file mode 100644 index 0000000..a444e9f --- /dev/null +++ b/random module tutorial @@ -0,0 +1,4 @@ +import random +colors = ['red', 'white', 'black'] +x = random.randint(colors) +print(x)