Skip to content

Commit 388ac99

Browse files
author
Matt Stetz
committed
create solution branch
1 parent d8fca99 commit 388ac99

File tree

2 files changed

+4
-402
lines changed

2 files changed

+4
-402
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ You may have noticed that "New Mexico" is included in our list of countries. Th
107107

108108

109109
```python
110-
None # add code here
110+
countries = None # add code here
111111
```
112112

113113

@@ -153,8 +153,8 @@ unique_countries = None
153153

154154

155155
```python
156-
unique_countries # ['USA', 'Finland', 'Argentina', 'South Korea', 'Morocco',
157-
#'Croatia','Mexico','Malta','Italy','Canada']
156+
unique_countries # ['Croatia', 'Argentina', 'Canada', 'Mexico', 'Italy',
157+
#'South Korea', 'USA', 'Morocco', 'Malta', 'Finland'] Note: order of countries may be different
158158
```
159159

160160
Now the number of repeat countries should be the number of countries minus the number of unique countries. So use the `len` function on both `unique_countries` and `countries` to calculate this and assign the result to the variable `num_of_repeats`.

0 commit comments

Comments
 (0)