scrimba
IN1000 - Uke #3
Introduksjon til lister
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Introduksjon til lister
AboutCommentsNotes
Introduksjon til lister
Expand for more info
index.py
run
preview
console
høydeÅr0 = 50
høydeÅr1 = 76
høydeÅr2 = 87
høydeÅr3 = 96

inputAlder = input("Hvor gammel er ungen (0, 1, 2 eller 3): ")
alder = int(inputAlder)

if alder == 0:
print(høydeÅr0)
elif alder == 1:
print(høydeÅr1)
elif alder == 2:
print(høydeÅr2)
elif alder == 3:
print(høydeÅr3)



Console
"50 "
,
/index.html
-11:03