Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Oppiskele Challenge: Write Your First Function | Writing Functions in R
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
Functions and Functional Programming in R

bookChallenge: Write Your First Function

Tehtävä

Swipe to start coding

Create a function that introduces a person using their name and age.

  • The function introduce_person must take two arguments: name and age.
  • The function must return a string in the format: "Hello, my name is <name> and I am <age> years old.".

Ratkaisu

Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 1. Luku 2
single

single

Kysy tekoälyä

expand

Kysy tekoälyä

ChatGPT

Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme

close

bookChallenge: Write Your First Function

Pyyhkäise näyttääksesi valikon

Tehtävä

Swipe to start coding

Create a function that introduces a person using their name and age.

  • The function introduce_person must take two arguments: name and age.
  • The function must return a string in the format: "Hello, my name is <name> and I am <age> years old.".

Ratkaisu

Switch to desktopVaihda työpöytään todellista harjoitusta vartenJatka siitä, missä olet käyttämällä jotakin alla olevista vaihtoehdoista
Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 1. Luku 2
single

single

some-alt