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
Opgave

Swipe to start coding

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

Løsning

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

Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 1. Kapitel 2
person = "___"
print("Hello,", person)

Spørg AI

expand
ChatGPT

Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat

some-alt