Answers for "get the username python"

8

python get username

import os

username = os.getlogin()
Posted by: Guest on January-01-2021
0

how to username in python?

import os
u_name = os.getlogin()
print(f"[*] Username is : {u_name}")
Posted by: Guest on June-08-2021

Code answers related to "get the username python"

Python Answers by Framework

Browse Popular Code Answers by Language