Program - Pick a random character from a given String


Topic: Program - Pick a random character from a given String

Solution

import random
name = 'pynative'
char = random.choice(name)
print("random char is ", char)



List all Python Programs