scrimba
Gjøre om tekst til tall
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

Gjøre om tekst til tall
AboutCommentsNotes
Gjøre om tekst til tall
Expand for more info
index.py
run
preview
console
tall = input("Gi meg et tall: ")

print("Tallet ditt er " + tall)
print(1000 + tall)

Console
"Tallet ditt er 23 "
,
"Traceback (most recent call last): TypeError: unsupported operand type(s) for +: 'int' and 'str'"
,
!
Error: Unknown error
,
/index.html
-3:36