Using Python External & Built In Modules

 # Using Python External & Built In Modules


import random

random_number = random.randint(0,2)
# print(random_number)

rand = random.random() * 100
# print(rand)

list = ["Star Plus", "DD1", "Aaj Tak", "CodeWithHarry"]
choice = random.choice(list)
print(choice)

Comments

Popular posts from this blog

Pickle Module

Python File IO Basics