Skip to content

Instantly share code, notes, and snippets.

@wuerges
Created November 18, 2015 15:22
Show Gist options
  • Save wuerges/a9aaaaa5f417b58c8699 to your computer and use it in GitHub Desktop.
Save wuerges/a9aaaaa5f417b58c8699 to your computer and use it in GitHub Desktop.
num = int(input("Digite Quantas notas: "))
notas = map(lambda x: int(input("Digite uma nota: ")), range(num))
media = sum(notas) / num
print("A media e':", media)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment