Q:

Pick a random character from a given String using python programming

0

Pick a random character from a given String

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

import random

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

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now