From 5ddaf0fdf25c496466b92fbca0cde1c726891ffc Mon Sep 17 00:00:00 2001 From: Gabriele Corti <33316703+borntofrappe@users.noreply.github.com> Date: Fri, 19 Jun 2020 16:47:34 +0200 Subject: [PATCH] fix comparing-and-sorting-tuples answer (#39027) * fix comparing-and-sorting-tuples answer apply flag to sorted function * remove commas from numpy array Co-authored-by: Shaun Hamilton <51722130+Sky020@users.noreply.github.com> --- .../comparing-and-sorting-tuples.english.md | 2 +- .../numpy/copying-arrays-warning.english.md | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody/comparing-and-sorting-tuples.english.md b/curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody/comparing-and-sorting-tuples.english.md index 691b223ee6..6caa719faa 100644 --- a/curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody/comparing-and-sorting-tuples.english.md +++ b/curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody/comparing-and-sorting-tuples.english.md @@ -31,7 +31,7 @@ question: answers: - | ```python - print( sorted( [ (v,k) for k,v in counts.items() ] ) ) + print( sorted( [ (v,k) for k,v in counts.items() ], reverse=True ) ) ``` - | ```python diff --git a/curriculum/challenges/english/08-data-analysis-with-python/numpy/copying-arrays-warning.english.md b/curriculum/challenges/english/08-data-analysis-with-python/numpy/copying-arrays-warning.english.md index 2486a9b51b..71e33c2663 100644 --- a/curriculum/challenges/english/08-data-analysis-with-python/numpy/copying-arrays-warning.english.md +++ b/curriculum/challenges/english/08-data-analysis-with-python/numpy/copying-arrays-warning.english.md @@ -28,11 +28,11 @@ question: answers: - | - `[1, 2, 3, 4, 5]` + `[1 2 3 4 5]` - | - `[1, 2, 20, 4, 5]` + `[1 2 20 4 5]` - | - `[1, 20, 3, 4, 5]` + `[1 20 3 4 5]` solution: 2 ```