correction of name for the contact list

This commit is contained in:
2022-04-07 22:15:38 +02:00
parent bcfa26c2f3
commit 6438adfec6
2 changed files with 6 additions and 8 deletions
BIN
View File
Binary file not shown.
+4 -6
View File
@@ -1,24 +1,22 @@
import random
import string
letters = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'J', 'K', 'P', 'Q', 'R', 'S', 'T','1','2','3','4','5','6','7','8','9']
letters = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'J', 'K', 'P', 'Q', 'R', 'S', 'T', '1', '2', '3', '4', '5', '6', '7',
'8', '9']
def get_random_id_number() -> str:
# write_the_valid_profiles_to_excel()
S = 8 # number of characters in the string.
# call random.choices() string module to find the string in Uppercase + numeric data.
ran = ''.join(random.choices(string.digits, k=S))
id_number = "57" + str(ran)
# print("The randomly generated string is : 94" + str(ran)) # print the random data
return id_number
def get_random_passport_id_number() -> str:
# write_the_valid_profiles_to_excel()
S = 7 # number of characters in the string.
# call random.choices() string module to find the string in Uppercase + numeric data.
ran = ''.join(random.choices(string.digits, k=S))
id_number = "E" + random.choice(letters) + str(ran)
# print("The randomly generated string is :" + str(ran)) # print the random data
return id_number