Challenge: Write Your First Function
Oppgave
Swipe to start coding
Create a function that introduces a person using their name and age.
- The function
introduce_personmust take two arguments:nameandage. - The function must return a string in the format:
"Hello, my name is <name> and I am <age> years old.".
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 1. Kapittel 2
single
Spør AI
Spør AI
Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår
Suggested prompts:
Can you explain this in simpler terms?
What are the main points I should remember?
Can you give me an example?
Fantastisk!
Completion rate forbedret til 5.56
Challenge: Write Your First Function
Sveip for å vise menyen
Oppgave
Swipe to start coding
Create a function that introduces a person using their name and age.
- The function
introduce_personmust take two arguments:nameandage. - The function must return a string in the format:
"Hello, my name is <name> and I am <age> years old.".
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 1. Kapittel 2
single