Challenge: Create and Access Lists
Opgave
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
Var alt klart?
Tak for dine kommentarer!
Sektion 1. Kapitel 2
single
Spørg AI
Spørg AI
Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat
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: Create and Access Lists
Stryg for at vise menuen
Opgave
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
Var alt klart?
Tak for dine kommentarer!
Sektion 1. Kapitel 2
single