SHARE
TWEET

Untitled

a guest Sep 19th, 2019 85 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class ExercicioTrinta:
  2.  
  3.     def main():
  4.  
  5.         data_inicial = input('insira a data do seu nascimento com /')
  6.         data_final = input('insira a data atual com /')
  7.  
  8.         data_inicial = data_inicial.split('/')
  9.         data_final = data_final.split('/')
  10.  
  11.         for i in range(0, 3):
  12.             data_final[i] = int(data_final[i].replace('\\D', ''))
  13.             data_inicial[i] = int((data_inicial[i].replace('\\D', ''))
  14.  
  15.             MES = 12
  16.             indx = data_inicial[2]
  17.  
  18.             for indx in range(data_final[2]):
  19.                 if indx % 4 == 0 and indx % 100 != 0 or indx % 400 == 0:
  20.             flag = True
  21.             else:
  22.             flag = False
  23.  
  24.             for j in range(MES):
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