Content-Length: 265514 | pFad | http://github.com/glennj/exercism.io/tree/main/python/grade-school

66 exercism.io/python/grade-school at main · glennj/exercism.io · GitHub
Skip to content

Latest commit

 

History

History

grade-school

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Grade School

Welcome to Grade School on Exercism's Python Track. If you need help running the tests or submitting your code, check out HELP.md.

Instructions

Given students' names along with the grade that they are in, create a roster for the school.

In the end, you should be able to:

  • Add a student's name to the roster for a grade
    • "Add Jim to grade 2."
    • "OK."
  • Get a list of all students enrolled in a grade
    • "Which students are in grade 2?"
    • "We've only got Jim just now."
  • Get a sorted list of all students in all grades. Grades should sort as 1, 2, 3, etc., and students within a grade should be sorted alphabetically by name.
    • "Who all is enrolled in school right now?"
    • "Let me think. We have Anna, Barb, and Charlie in grade 1, Alex, Peter, and Zoe in grade 2 and Jim in grade 5. So the answer is: Anna, Barb, Charlie, Alex, Peter, Zoe and Jim"

Note that all our students only have one name (It's a small town, what do you want?) and each student cannot be added more than once to a grade or the roster. In fact, when a test attempts to add the same student more than once, your implementation should indicate that this is incorrect.

The tests for this exercise expect your school roster will be implemented via a School class in Python. If you are unfamiliar with classes in Python, classes from the Python docs is a good place to start.

Source

Contributed to by

  • @behrtam
  • @cmccandless
  • @de2Zotjes
  • @Dog
  • @hop
  • @ikhadykin
  • @kytrinyx
  • @lowks
  • @mambocab
  • @Mofeywalker
  • @N-Parsons
  • @pheanex
  • @sjakobi
  • @tqa236

Based on

A pairing session with Phil Battos at gSchool









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/glennj/exercism.io/tree/main/python/grade-school

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy