-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ee243c7
commit 770dd5d
Showing
1 changed file
with
13 additions
and
15 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,26 @@ | ||
from time import sleep | ||
|
||
|
||
def escreva(texto): | ||
tamanho = len(texto) + 4 | ||
print("~" * tamanho) | ||
print(f" {texto}") | ||
print("~" * tamanho) | ||
def write(txt): | ||
tam = len(txt) + 4 | ||
print("~" * tam) | ||
print(f" {txt}") | ||
print("~" * tam) | ||
|
||
|
||
def pyhelp(comando): | ||
help(comando) | ||
def pyhelp(comand): | ||
help(comand) | ||
|
||
|
||
def default_loop(): | ||
def default(): | ||
while True: | ||
escreva("Helper system PyHELP") | ||
funcao_ou_lib = input("Function or Lib > ") | ||
write("Helper system PyHELP") | ||
funcorlib = input("Function or Lib > ") | ||
|
||
if funcao_ou_lib[0].lower() == "f": | ||
if funcorlib[0].lower() == "f": | ||
break | ||
else: | ||
pyhelp(funcao_ou_lib) | ||
pyhelp(funcorlib) | ||
|
||
|
||
default_loop() | ||
|
||
# code ref https://github.com/guilherme-learning-center/Curso-Python-Gustavo-Guanabara/blob/master/mundo_3/aula_21/desafio_106.py | ||
default() |