Created
August 11, 2021 14:18
-
-
Save fabiommendes/3a3187963c1e5f9afd1ed7b031c28a68 to your computer and use it in GitHub Desktop.
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
# -*- coding: utf-8 -*- | |
# -- Sheet -- | |
from time import sleep | |
DEV_MODE = 0 | |
if DEV_MODE: | |
CARACTERES_DT = 0.0 | |
LINHAS_DT = 0.05 | |
else: | |
CARACTERES_DT = 0.0125 | |
LINHAS_DT = 0.25 | |
INPUTS = """Fábio | |
1,80m | |
39 | |
""" | |
LISTA_INPUTS = INPUTS.splitlines() | |
def digita(texto): | |
for linha in texto.splitlines(): | |
for caractere in linha: | |
print(caractere, end="") | |
sleep(CARACTERES_DT) | |
print(" ") | |
sleep(LINHAS_DT) | |
def leia(msg=""): | |
if DEV_MODE: | |
linha = LISTA_INPUTS[0] | |
del LISTA_INPUTS[0] | |
digita(linha) | |
return linha | |
else: | |
return input(msg) | |
digita("""😀 Bom dia aventureirx! 😀 | |
Você está numa estrada em direção às terras | |
amaldiçoadas de Pi-Namador. É um local assolado | |
por pragas e governado por um cruel senhor | |
das trevas. Os habitantes de tais províncias serão | |
eternamente gratos se você e seu grupo de | |
aventureirxs liberarem a terra desse governo | |
sombrio.""") | |
digita("Me diga mais sobre você.") | |
digita("Qual o seu nome? ") | |
nome = leia() | |
digita("Qual a sua altura? ") | |
altura = float(leia().lower().rstrip('m').replace(",", ".")) | |
digita("Qual a sua idade? ") | |
idade = int(leia()) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment