9951 explained code solutions for 126 technologies


pythonCreating a folder


import os
foo = os.getlogin()
os.mkdir(f'C:\\Users\\{foo}\\Desktop')ctrl + c
os

library to get operating system commands

os.getlogin()

returns the username of the computer

os.mkdir(

creates folder, specified in the arguments