Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Hello, me! | The basics
Learn Python from Scratch

book
Hello, me!

Congratulations! Now, let's modify this simple program. In the example below variable "person" is assigned value "Mary" and the program uses that name in printing the greeting. (feel free to change it to your own name :)

person = "Mary"
print("Hello,", person)
12
person = "Mary" print("Hello,", person)
copy
Oppgave

Swipe to start coding

Assign your own name to the variable "person" and print the greeting!

Løsning

person = "John"
print("Hello,", person)

Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 1. Kapittel 2
person = "___"
print("Hello,", person)
toggle bottom row
We use cookies to make your experience better!
some-alt