Skip to content

Commit ceb2532

Browse files
ALL CHALLENGES - COMPLETED AND UPDATED
1 parent cf7156f commit ceb2532

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

Mundo-03.py

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2018,3 +2018,45 @@ def somar(a=0, b=5, c=4): # parameter optional -> value = 0 another value = 1 :
20182018
break
20192019
# break
20202020
print("Até Logo")'''
2021+
2022+
# SOLUTION FROM GUANABARA
2023+
2024+
'''from time import sleep
2025+
c = ("\033[m", # 0 - sem cores
2026+
"\033[0;30;41m", # 1 - Vermelho
2027+
"\033[0;30;42m", # 2 - Verde
2028+
"\033[0;30;43m", # 3 - Amarelo
2029+
"\033[0;30;44m", # 4 - Azul
2030+
"\033[0;30;45m", # 5 - Roxo
2031+
"\033[7;30m" # 6 - Branco
2032+
);
2033+
2034+
2035+
def ajuda(com):
2036+
titulo(f"ACESSANDO O MANUAL DO COMANDO \ '{comando}\"", 4)
2037+
print(c[6], end="")
2038+
help(com)
2039+
print(c[0], end="")
2040+
sleep(1)
2041+
2042+
2043+
def titulo(msg, cor=0):
2044+
tam = len(msg) + 6
2045+
print(c[cor], end="")
2046+
print("~"*tam)
2047+
print(f" {msg}")
2048+
print("~"*tam)
2049+
print(c[0], end="")
2050+
sleep(2)
2051+
2052+
2053+
# Programa principal
2054+
comando = ""
2055+
while True:
2056+
titulo("SISTEMA DE AJUDA PyHELP!", 2)
2057+
comando = str(input("Função ou biblioteca > "))
2058+
if(comando.upper() == "FIM"):
2059+
break
2060+
else:
2061+
ajuda(comando)
2062+
titulo("ATÉ LOGO!", 1)'''

0 commit comments

Comments
 (0)