Skip to content

Commit fdd75b8

Browse files
committed
print out objects in exercise 3
1 parent 8876e5c commit fdd75b8

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

IntroToPython/inst/doc/Exercise3.Rmd

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,9 @@ arr_num_6x3 = arr_num.reshape(6,3)
9999

100100
```{python, echo=toMessage}
101101
small_nums = arr_num_6x3[arr_num_6x3 < 10]
102+
small_nums
102103
big_nums = arr_num_6x3[arr_num_6x3 > 9]
104+
big_nums
103105
```
104106

105107
- Confirm the shape and dimensions of these arrays.
@@ -117,14 +119,16 @@ big_nums.ndim
117119
```{python, echo=toMessage}
118120
119121
small_nums_3x3 = small_nums.reshape(3,3)
122+
small_nums_3x3
120123
big_nums_3x3 = big_nums.reshape(3,3)
121-
124+
big_nums_3x3
122125
```
123126

124127
- Concatenate these two arrays, joining them by columns.
125128

126129
```{python, echo=toMessage}
127130
arr_cat = np.concatenate((small_nums_3x3, big_nums_3x3), axis = 1)
131+
arr_cat
128132
```
129133

130134
**Exercise 3** - **Custom Functions**

0 commit comments

Comments
 (0)