From 03a53790625dbdc721012ad2bdac505e61bda9c1 Mon Sep 17 00:00:00 2001 From: ieahleen Date: Fri, 1 Jan 2021 18:39:23 +0000 Subject: [PATCH] single line pre for python for everybody --- .../build-your-own-functions.md | 30 ++++++++++----- .../dictionaries-and-loops.md | 12 ++++-- .../dictionaries-common-applications.md | 10 ++--- .../intermediate-expressions.md | 10 ++--- .../intermediate-strings.md | 10 ++--- .../introduction-elements-of-python.md | 6 +-- .../introduction-python-as-a-language.md | 8 ++-- .../loops-and-iterations.md | 38 +++++++++++-------- .../python-dictionaries.md | 20 +++++----- .../python-for-everybody/python-lists.md | 8 ++-- .../python-for-everybody/reading-files.md | 10 ++--- ...xpressions-matching-and-extracting-data.md | 8 ++-- ...ular-expressions-practical-applications.md | 8 ++-- .../regular-expressions.md | 10 ++--- .../python-for-everybody/strings-and-lists.md | 8 ++-- .../variables-expressions-and-statements.md | 8 ++-- .../python-for-everybody/web-services-json.md | 10 ++--- 17 files changed, 118 insertions(+), 96 deletions(-) diff --git a/curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody/build-your-own-functions.md b/curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody/build-your-own-functions.md index b637865a67..b5817c8f8c 100644 --- a/curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody/build-your-own-functions.md +++ b/curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody/build-your-own-functions.md @@ -30,35 +30,45 @@ jane() ## --answers-- -
Zap
+
+Zap
 ABC
 jane
 fred
-jane
+jane +
--- -
Zap
+
+Zap
 ABC
-Zap
+Zap +
--- -
ABC
+
+ABC
 Zap
-jane
+jane +
--- -
ABC
+
+ABC
 Zap
-ABC
+ABC +
--- -
Zap
+
 Zap
-Zap
+Zap +Zap +
## --video-solution-- diff --git a/curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody/dictionaries-and-loops.md b/curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody/dictionaries-and-loops.md index 7b6791082c..5474f12357 100644 --- a/curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody/dictionaries-and-loops.md +++ b/curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody/dictionaries-and-loops.md @@ -26,14 +26,18 @@ for key in counts: ## --answers-- -
annie 42
-jan 100
+
+annie 42
+jan 100
+
--- -
chuck 1
+
+chuck 1
 annie 42
-jan 100
+jan 100 +
--- diff --git a/curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody/dictionaries-common-applications.md b/curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody/dictionaries-common-applications.md index f42dda4f7c..c10a1c9cfd 100644 --- a/curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody/dictionaries-common-applications.md +++ b/curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody/dictionaries-common-applications.md @@ -18,23 +18,23 @@ print(counts.get('kris', 0)) ## --answers-- -2 +
2
--- -quincy +
quincy
--- -0 +
0
--- -10 +
10
--- -[will return error] +
[will return error]
## --video-solution-- diff --git a/curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody/intermediate-expressions.md b/curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody/intermediate-expressions.md index 912c69fd54..395aa66a3f 100644 --- a/curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody/intermediate-expressions.md +++ b/curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody/intermediate-expressions.md @@ -27,23 +27,23 @@ print(height/3) ## --answers-- -39 +
39
--- -4 +
4
--- -4.0 +
4.0
--- -5.0 +
5.0
--- -5 +
5
## --video-solution-- diff --git a/curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody/intermediate-strings.md b/curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody/intermediate-strings.md index 5a2669539f..8194b73215 100644 --- a/curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody/intermediate-strings.md +++ b/curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody/intermediate-strings.md @@ -24,23 +24,23 @@ i = word.find("na") ## --answers-- -nanana +
nanana
--- -2 +
2
--- -3 +
3
--- -True +
True
--- -na +
na
## --video-solution-- diff --git a/curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody/introduction-elements-of-python.md b/curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody/introduction-elements-of-python.md index a26134a5f1..6d29c02476 100644 --- a/curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody/introduction-elements-of-python.md +++ b/curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody/introduction-elements-of-python.md @@ -19,15 +19,15 @@ print(x) ## --answers-- -x +
x
--- -x + 1 +
x + 1
--- -44 +
44
## --video-solution-- diff --git a/curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody/introduction-python-as-a-language.md b/curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody/introduction-python-as-a-language.md index 404d6aacd4..340ec23b0f 100644 --- a/curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody/introduction-python-as-a-language.md +++ b/curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody/introduction-python-as-a-language.md @@ -18,19 +18,19 @@ print(x) ## --answers-- -x +
x
--- -6 +
6
--- -x = 6 +
x = 6
--- -(x) +
(x)
## --video-solution-- diff --git a/curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody/loops-and-iterations.md b/curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody/loops-and-iterations.md index 9f1770d7d1..d54eebccd1 100644 --- a/curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody/loops-and-iterations.md +++ b/curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody/loops-and-iterations.md @@ -22,27 +22,35 @@ while True: ## --answers-- -
0
-1
-2
- ---- - -
0
+
+0
 1
 2
-3
+
--- -
1
-2
- ---- - -
1
+
+0
+1
 2
-3
+3 +
+ +--- + +
+1
+2
+
+ +--- + +
+1
+2
+3
+
## --video-solution-- diff --git a/curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody/python-dictionaries.md b/curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody/python-dictionaries.md index 989d80393c..78c14e4c3d 100644 --- a/curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody/python-dictionaries.md +++ b/curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody/python-dictionaries.md @@ -20,33 +20,33 @@ dict["Sun"] = 9 ## --answers-- -```python +
 {'Fri': 20, 'Thu': 6, 'Sat': 1}
-```
+
--- -```python +
 {'Fri': 20, 'Thu': 6, 'Sat': 1, 'Thu': 13, 'Sat': 2, 'Sun': 9}
-```
+
--- -```python +
 {'Sun': 9}
-```
+
--- -```python +
 {'Thu': 13, 'Sat': 2, 'Sun': 9}
-```
+
--- -```python +
 {'Fri': 20, 'Thu': 13, 'Sat': 2, 'Sun': 9}
-```
+
## --video-solution-- diff --git a/curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody/python-lists.md b/curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody/python-lists.md index a04f0a9132..3fe525274b 100644 --- a/curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody/python-lists.md +++ b/curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody/python-lists.md @@ -18,19 +18,19 @@ x = fruit[1] ## --answers-- -banana +
banana
--- -a +
a
--- -b +
b
--- -True +
True
## --video-solution-- diff --git a/curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody/reading-files.md b/curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody/reading-files.md index bdbe3418fd..9176491c3d 100644 --- a/curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody/reading-files.md +++ b/curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody/reading-files.md @@ -13,23 +13,23 @@ What is used to indicate a new line in a string? ## --answers-- -\\n +
\\n
--- -{new_line} +
{new_line}
--- -{n} +
{n}
--- -/n +
/n
--- -/new +
/new
## --video-solution-- diff --git a/curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody/regular-expressions-matching-and-extracting-data.md b/curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody/regular-expressions-matching-and-extracting-data.md index 9ff31ce433..0f0364bda9 100644 --- a/curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody/regular-expressions-matching-and-extracting-data.md +++ b/curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody/regular-expressions-matching-and-extracting-data.md @@ -20,19 +20,19 @@ print(lst) ## --answers-- -['csev@umich.edu', 'cwen@iupui.edu'] +
['csev@umich.edu', 'cwen@iupui.edu']
--- -['csev@umich.edu'] +
['csev@umich.edu']
--- -['umich.edu', 'iupui.edu'] +
['umich.edu', 'iupui.edu']
--- -['csev@', 'cwen@'] +
['csev@', 'cwen@']
## --video-solution-- diff --git a/curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody/regular-expressions-practical-applications.md b/curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody/regular-expressions-practical-applications.md index 46b52afccf..8f634c63ce 100644 --- a/curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody/regular-expressions-practical-applications.md +++ b/curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody/regular-expressions-practical-applications.md @@ -13,19 +13,19 @@ What will search for a "$" in a regular expression? ## --answers-- -$ +
$
--- -\\dollar\\ +
\\dollar\\
--- -\\$ +
\\$
--- -!$ +
!$
## --video-solution-- diff --git a/curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody/regular-expressions.md b/curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody/regular-expressions.md index bc6b2374a8..97f77c7d05 100644 --- a/curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody/regular-expressions.md +++ b/curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody/regular-expressions.md @@ -13,23 +13,23 @@ Which regex matches only a white space character? ## --answers-- -\\S +
\\S
--- -\\s +
\\s
--- -. +
.
--- -\_ +
\_
--- -\\. +
\\.
## --video-solution-- diff --git a/curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody/strings-and-lists.md b/curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody/strings-and-lists.md index 2ddd49dd0f..b40eb3234e 100644 --- a/curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody/strings-and-lists.md +++ b/curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody/strings-and-lists.md @@ -26,19 +26,19 @@ n = parts[1] ## --answers-- -mail +
mail
--- -q +
q
--- -lar +
lar
--- -`lar@freecodecamp.org` +
lar@freecodecamp.org
## --video-solution-- diff --git a/curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody/variables-expressions-and-statements.md b/curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody/variables-expressions-and-statements.md index 9733ed198a..b957d41259 100644 --- a/curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody/variables-expressions-and-statements.md +++ b/curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody/variables-expressions-and-statements.md @@ -13,19 +13,19 @@ What is the symbol used in an assignment statement? ## --answers-- -~ +
~
--- -& +
&
--- -= +
=
--- -\| +
\|
## --video-solution-- diff --git a/curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody/web-services-json.md b/curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody/web-services-json.md index 1bb697fcbf..8d49d4587d 100644 --- a/curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody/web-services-json.md +++ b/curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody/web-services-json.md @@ -31,23 +31,23 @@ print(info[1]['name']) ## --answers-- -Quincy +
Quincy
--- -Mrugesh +
Mrugesh
--- -001 +
001
--- -009 +
009
--- -[Error] +
[Error]
## --video-solution--