Skip to content

Commit ffc4ff5

Browse files
committed
Corrected typos and formatting errors in plane tickets exercise.
1 parent eb0e928 commit ffc4ff5

3 files changed

Lines changed: 7 additions & 4 deletions

File tree

exercises/concept/plane-tickets/.docs/instructions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,10 @@ The function should then return a _dictionary_ of `passenger` as _key_, and `sea
7575
Conda Airlines would like to have a unique code for each ticket.
7676
Since they are a big airline, they have a lot of flights.
7777
This means that there are multiple flights with the same seat number.
78-
They want you to create a system that creates a unique ticket that is _12_ characters long string code for identification.
78+
They want you to create a system that formulates a unique ticket that is a _12_ character long string.
7979

8080
This code begins with the `assigned_seat` followed by the `flight_id`.
81-
The rest of the code is appended by `0s`.
81+
The rest of the code is filled with `0s`.
8282

8383
Implement a function `generate_codes(<seat_numbers>, <flight_id>)` that accepts a `list` of `seat_numbers` and a `string` with the flight number.
8484
The function should then return a `generator` that yields a `ticket_number`.

exercises/concept/plane-tickets/.meta/exemplar.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def generate_seats(number):
3939
There is no row 13, and each row has 4 seats.
4040
4141
Seats should be sorted from low to high.
42-
For exampl: 3C, 3D, 4A, 4B
42+
For example: 3C, 3D, 4A, 4B
4343
4444
"""
4545

@@ -72,6 +72,7 @@ def assign_seats(passengers):
7272
output[passenger] = seat_number
7373
return output
7474

75+
7576
def generate_codes(seat_numbers, flight_id):
7677
"""Generate codes for a ticket.
7778

exercises/concept/plane-tickets/generators.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,13 @@ def generate_seats(number):
3434
There is no row 13, and each row has 4 seats.
3535
3636
Seats should be sorted from low to high.
37-
For exampl: 3C, 3D, 4A, 4B
37+
For example: 3C, 3D, 4A, 4B
3838
3939
"""
4040

4141
pass
4242

43+
4344
def assign_seats(passengers):
4445
"""Assign seats to passengers.
4546
@@ -54,6 +55,7 @@ def assign_seats(passengers):
5455

5556
pass
5657

58+
5759
def generate_codes(seat_numbers, flight_id):
5860
"""Generate codes for a ticket.
5961

0 commit comments

Comments
 (0)