Skip to content

Commit 0344046

Browse files
committed
restructuring one question format
1 parent 1eef323 commit 0344046

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

chapter01_introduction/practice_questions.ipynb

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,13 @@
2626
"\n",
2727
"### Q2 \n",
2828
"\n",
29-
"Add 1 line of code below each comment to perform the task specified in the comment."
29+
"Add 1 line of code below each comment to perform the tasks specified in the comments:\n",
30+
"\n",
31+
"1. Convert the text in `x` to all caps and print to screen\n",
32+
"2. Convert the text in `y` to all lowercase and print to screen\n",
33+
"3. Concatenate `x` and `y` and print the result to screen\n",
34+
"4. Concatenate `x` and `y` using `+`, adding one space between them and print to screen. \n",
35+
"5. Perform the same task but using Python string formatting with `%`. See examples --- https://www.learnpython.org/en/String_Formatting"
3036
]
3137
},
3238
{
@@ -38,16 +44,15 @@
3844
"x = \"Miles\"\n",
3945
"y = \"Smiles\"\n",
4046
"\n",
41-
"# Convert the text in `x` to all caps and print to screen\n",
47+
"# 1.\n",
4248
"\n",
43-
"# Convert the text in `y` to all lowercase and print to screen\n",
49+
"# 2.\n",
4450
"\n",
45-
"# Concatenate `x` and `y` and print the result to screen\n",
51+
"# 3.\n",
4652
"\n",
47-
"# Concatenate `x` and `y` using `+`, adding one space between them and print to screen. \n",
53+
"# 4.\n",
4854
"\n",
49-
"# Perform the same task but using Python string formatting with `%`. \n",
50-
"# See examples --- https://www.learnpython.org/en/String_Formatting"
55+
"# 5."
5156
]
5257
},
5358
{

0 commit comments

Comments
 (0)