Advertisement
igovasconcelos

Untitled

Aug 27th, 2020
412
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 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) +
  12.                    (nota2 * 6) ) / (4 + 6)
  13.  
  14. quociente = 11 / 2
  15. resto = 11 % 2
  16. exp = 2 ** 3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement