Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Challenge | Strings
Introduction to Python | Mobile-Friendly

Challenge

Sveip for å vise menyen

Suppose you are given the variables name (as a string) and age (as an integer). You need to output the message in the following format "name is age y.o." using concatenation.

question-icon

Fill in the blanks to complete the task.

# Variables
name = "Jim"
age = 34

# Output the message
print()
Jim is 34 y.o.

Klikk eller dra`n`slipp elementer og fyll inn de tomme feltene

Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 3. Kapittel 5

Spør AI

expand

Spør AI

ChatGPT

Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår

Challenge

Suppose you are given the variables name (as a string) and age (as an integer). You need to output the message in the following format "name is age y.o." using concatenation.

Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 3. Kapittel 5
some-alt