Posted on 23rd July 2024| views
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.