Challenge: Create and Access Lists
Oppgave
Swipe to start coding
Create a function that builds a list representing a student's profile and allows access to specific elements.
- The function must return a list with four elements:
name,age,grades, andpassed. - The
gradeselement must be a numeric vector. - The
passedelement must be a logical value. - The main execution must access and print the
gradesandpassedelements from the list.
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
Fantastisk!
Completion rate forbedret til 5.56
Challenge: Create and Access Lists
Sveip for å vise menyen
Oppgave
Swipe to start coding
Create a function that builds a list representing a student's profile and allows access to specific elements.
- The function must return a list with four elements:
name,age,grades, andpassed. - The
gradeselement must be a numeric vector. - The
passedelement must be a logical value. - The main execution must access and print the
gradesandpassedelements from the list.
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 1. Kapittel 2
single