Write a program to Pick a random character from a given String


Topic: Write a program to 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