diff --git a/randomstringgenerator.py b/randomstringgenerator.py new file mode 100644 index 0000000..c36f50b --- /dev/null +++ b/randomstringgenerator.py @@ -0,0 +1,6 @@ +import secrets +import string +N = int(input("Enter Desired length of string")) +S = ''.join(secrets.choice(string.ascii_letters + string.digits + string.punctuation) + for i in range(N)) +print("The random string generated is"+str(S))