Make a program that displays the current directory (of which you are saving your programs), the disk drive used, the system user name, and the current folder. Consider the example below. Tip use the
split
function.
Diretorio Atual = C:\Users\monte\PycharmProjects\Aula3
Unidade do Disco = C:
Nome do Usuario = monte
Pasta Atual = Aula3
I tried to use split
and the program did not accept
import os
os.getcwd()
os.getlogin()
lista = []
print(os.getcwd())
print(os.getlogin())
lista.append(os.getcwd()) #variável colocada na lista