how to know the name of windows user using python code example
Example 1: python get username windows
username = os.getlogin()
Example 2: python get current user windows
import os
current_user = os.getlogin()
username = os.getlogin()
import os
current_user = os.getlogin()