This commit is contained in:
Oystein Kristoffer Tveit 2020-08-26 15:28:33 +02:00
parent 16e54a9b13
commit 60c6d18d58
1 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,7 @@
AMOUNT_OF_POSSIBLE_MELODIES = 8.25e19
melodiesHeard = int(input('Antall ulike 10-toners melodilinjer du har hørt? '))
percentMelodiesHeard = melodiesHeard / AMOUNT_OF_POSSIBLE_MELODIES * 100
print(f'Du har hørt {percentMelodiesHeard} prosent av melodier som er mulig.')