1284492
Ano: 2019
Disciplina: TI - Desenvolvimento de Sistemas
Banca: FUNCERN
Orgão: Pref. Extremoz-RN
Disciplina: TI - Desenvolvimento de Sistemas
Banca: FUNCERN
Orgão: Pref. Extremoz-RN
Provas:
Considere o programa abaixo escrito em Linguagem Python 3.
def ehIsso(text):
if len(text) != 10:
return False
if text[0] != '9':
return False
for i in range(1, 5):
if not text[i].isdecimal():
return False
if text[5] != '-':
return False
for i in range(6, 10):
if not text[i].isdecimal():
return False
return "OK"
numero = input("Digite uma entrada: ")
print(ehIsso(numero))
A entrada que corresponde à saída “OK” no prompt ao qual o programa foi executado é