Skip to content

Commit

Permalink
Add exercise106
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielMafra committed Jul 29, 2021
1 parent 95a3daf commit f4dafa5
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions exercise106.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
from time import sleep


def escreva(texto):
tamanho = len(texto) + 4
print("~" * tamanho)
print(f" {texto}")
print("~" * tamanho)


def pyhelp(comando):
help(comando)


def default_loop():
while True:
escreva("Helper system PyHELP")
funcao_ou_lib = input("Function or Lib > ")

if funcao_ou_lib[0].lower() == "f":
break
else:
pyhelp(funcao_ou_lib)


default_loop()

# code ref https://github.com/guilherme-learning-center/Curso-Python-Gustavo-Guanabara/blob/master/mundo_3/aula_21/desafio_106.py

0 comments on commit f4dafa5

Please sign in to comment.