Posted on 18th April 2024
import random
import string
def randomString(strLength):
letters = string.ascii_letters
return ''.join(random.choice(letters) for j in range(strLength))
print("Random String of lowercase letters")
print("intial random string ", randomString(9))
print("next random string ", randomString(9))
If you are looking for the Python certification course, you can check out this online Python Training and Improve your knowledge in Python.
STILL GOT QUERIES?