Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Alunos: Guilherme da Costa de Albuquerque e Thiago Leão
- from re import *
- # Modifique o trecho daqui
- quantia = r"(\R\$([1-9]\d+|\d)\,(\d[1-9]|[1-9]\d))|(\R\$([1-9]\d+|[1-9]))"
- bissexto = r"(19|20)(0|2|4|6|8)(0|4|8)|(19|20)(1|3|5|7|9)(2|6)"
- dna = r"(A|C|T|G)*" # Gotta fix this one NIGGER
- comentario = r"/\*[^\/]+/"
- gene = r"(ATG|GTG|TTG((A|T|C|G)(A|T|C|G)(A|T|C|G))*TGA|TAA|TAG)" # gotta fix this one NIGGER
- # Ate aqui. Nao mude nada daqui para baixo!
- while True:
- s = input()
- print(s)
- if search(quantia, s):
- print("Quantia em reais")
- if search(bissexto, s):
- print("Ano bissexto recente")
- if search(dna, s):
- print("Fragmento de DNA")
- if search(comentario, s):
- print("Comentario em C")
- if search(gene, s):
- print("Gene")
Add Comment
Please, Sign In to add comment