This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Primeira forma de fazer, simples para aprendizado | |
x = input("Digite a letra: ") | |
if x.lower() == "m": | |
sexo = "Masculino" | |
print(sexo) | |
elif x.lower() == "f": | |
sexo = "Feminino" | |
print(sexo) | |
else: | |
print("Sexo Inválido") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from os.path import join | |
import os | |
def apagar_torrent(): | |
"""Find and delete every .torrent find in the directory""" | |
folder = "/home/marcelo/Downloads/" | |
test = os.listdir(folder) | |
for item in test: | |
if item.endswith(".torrent"): |
NewerOlder