Answers for "random list in pyton"

1

python random liste

import random

liste = ["world, HELLO !", "hello world !"]

N = random.choice(liste)

print(N)
Posted by: Guest on January-15-2021
1

which function to use in random module for a list in python

random.choice
Posted by: Guest on May-11-2020

Python Answers by Framework

Browse Popular Code Answers by Language