Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import hashlib
- import math
- test = input()
- if test[len(test) - 1].isalpha():
- test = test + test[len(test)-1].upper()
- elif test[len(test) - 1].isdigit():
- num = int(test[len(test)-1])
- append_num = math.factorial(num) + math.factorial(pow(num, 2) - 2) - num * 2;
- test = test + str(append_num)
- testWithSha = hashlib.sha1(test.encode('utf-8')).hexdigest()
- print(testWithSha)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement