daily pastebin goal
45%
SHARE
TWEET

Untitled

a guest Dec 18th, 2018 44 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Alunos: Guilherme da Costa de Albuquerque e Thiago Leão
  2.  
  3. from re import *
  4.  
  5. # Modifique o trecho daqui
  6.  
  7. quantia = r"(\R\$([1-9]\d+|\d)\,(\d[1-9]|[1-9]\d))|(\R\$([1-9]\d+|[1-9]))"
  8. bissexto = r"(19|20)(0|2|4|6|8)(0|4|8)|(19|20)(1|3|5|7|9)(2|6)"
  9. dna = r"(A|C|T|G)*" # Gotta fix this one NIGGER
  10. comentario = r"/\*[^\/]+/"
  11. 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
  12.  
  13. # Ate aqui. Nao mude nada daqui para baixo!
  14.  
  15. while True:
  16.   s = input()
  17.   print(s)
  18.   if search(quantia, s):
  19.     print("Quantia em reais")
  20.   if search(bissexto, s):
  21.     print("Ano bissexto recente")
  22.   if search(dna, s):
  23.     print("Fragmento de DNA")
  24.   if search(comentario, s):
  25.     print("Comentario em C")
  26.   if search(gene, s):
  27.     print("Gene")
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top