Advertisement
igovasconcelos

Untitled

Aug 27th, 2020
373
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.27 KB | None | 0 0
  1. nota1 = 6.5
  2. nota2 = 9.2
  3. total = nota1 + nota2
  4. media = total / 2
  5.  
  6. anoNascimento = 1990
  7. anoCorrente = 2020
  8. idade = anoCorrente - anoNascimento
  9. idade = 2020 - 1991
  10.  
  11. mediaPonderada = ( (nota1 * 4) + (nota2 * 6) )/ (4 + 6)
  12.  
  13. quociente = 11 / 2
  14. resto = 11 % 2
  15. exp = 2 ** 3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement