Python obtient le nom d'utilisateur
import os
username = os.getlogin()
arne314
import os
username = os.getlogin()
import os
u_name = os.getlogin()
print(f"[*] Username is : {u_name}")
Username = input("What is your username? ")
UsernameLength = len(Username)
if UsernameLength <= 10:
print(f'Your Username is {Username}')
elif UsernameLength >= 10:
print("Username is too long! (MAXIMUM IS 20 CHARACTERS)")
exit()