File tree Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change 26
26
" \n " ,
27
27
" ### Q2 \n " ,
28
28
" \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"
30
36
]
31
37
},
32
38
{
38
44
" x = \" Miles\"\n " ,
39
45
" y = \" Smiles\"\n " ,
40
46
" \n " ,
41
- " # Convert the text in `x` to all caps and print to screen \n " ,
47
+ " # 1. \n " ,
42
48
" \n " ,
43
- " # Convert the text in `y` to all lowercase and print to screen \n " ,
49
+ " # 2. \n " ,
44
50
" \n " ,
45
- " # Concatenate `x` and `y` and print the result to screen \n " ,
51
+ " # 3. \n " ,
46
52
" \n " ,
47
- " # Concatenate `x` and `y` using `+`, adding one space between them and print to screen. \n " ,
53
+ " # 4. \n " ,
48
54
" \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."
51
56
]
52
57
},
53
58
{
You can’t perform that action at this time.
0 commit comments