From 006e050c269e5e5f8f8a366a2b7315a12b1d76b7 Mon Sep 17 00:00:00 2001 From: Mike Sullivan Date: Mon, 23 Oct 2023 15:13:13 +0100 Subject: [PATCH] ex01 exercise done - AssertionError fix V1 --- .../mike_sullivan/ex01_basics/main.py | 3 ++- tests/__pycache__/test_python.cpython-310.pyc | Bin 0 -> 2830 bytes 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 tests/__pycache__/test_python.cpython-310.pyc diff --git a/exercises-python/mike_sullivan/ex01_basics/main.py b/exercises-python/mike_sullivan/ex01_basics/main.py index 57324e7a..6e70b1ac 100644 --- a/exercises-python/mike_sullivan/ex01_basics/main.py +++ b/exercises-python/mike_sullivan/ex01_basics/main.py @@ -62,8 +62,9 @@ def main(): sortedValuesCounts = [x for x in sorted(zip(counts,values),reverse=True)] # print out words in descending order of frequency + print('Word Usage') for i in sortedValuesCounts[0:numlines]: - print(i[0],i[1]) + print(f"{i[1]} {i[0]}") pass diff --git a/tests/__pycache__/test_python.cpython-310.pyc b/tests/__pycache__/test_python.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..1077d970b91b729dcc4abb22491fc3d4e1572a8e GIT binary patch literal 2830 zcma)8TW{Mo6ecOjmT!sUrft%6o7Z8(yrFKAw!5Jyx@GAF>#|}=RzS!gI3g1(ktLUu z6DLUbuyl`o*nWY%xBex)?kUgRQ(v}oBwu1D9VS7%93GM%&-am3P$*;xJb(YRApS53 z`3ozj9~~<9;8PQn5KcJth=n=xXoFddCN|B|;x^sV656rb!;tMq{IBA?eqE*xvtw7AGiFyn7fzr-)_>6eI>uEt;G;t57-r9vb9NiD2f#Rrep9~H% z)oKV;4(m0jl>gs=&A|0TRfZlRj3)yaKiG=PDriYZl({Q~69)32dIG!>2b2E8pn$Y5 z!KY>**(OKiXY)Bdq8-vDk{!|C*)z6EUJ+P&%2hUu_KHQUIv>%t#IAAjrn>ai#<~(x zZ8Y3naj@ZweHGSZDC9;cRH)+AZXSg7z^^tBqU;^dR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