Answer:
2
Explanation:
The num%4 operation returns the remainder, so only if num is not a multiple of 4, this value will be non-zero (it will be 1, 2 or 3).
Complete your first marathon.
Create and commit to a fitness routine.
Learn a foreign language.
Cut junk food out of your diet.
Start volunteering regularly.
Increase your emotional intelligence.
Earn a college degree.
Answer:
Answer explained below. Python language used
Explanation:
The size of the square is of size 10. So assuming zero indexing,
vertical side1 (column Index = 5): row index from 5 to 14
vertical side1 (column Index = 14): row index from 5 to 14
horizontal side1 (row Index = 5): column index from 5 to 14
horizontal side2 (row Index = 14): column index from 5 to 14
Note:
while indexing, data_new[a:b,c] denotes,
row index: a to b-1
column index: c
Similarly data_new[a,b:c] denotes,
row index: a
column index: b to c-1
<u>Code:
</u>
import matplotlib.pyplot as plt
import numpy as np
size_1 = 20
size_2 = 20
data_new = np.random.random((size_1,size_2))
data_new[5:15,5] = 4
data_new[5:15,14] = 4
data_new[5,5:15] = 4
data_new[14,5:15] = 4
fig = plt.figure(figsize=(10,10))
plt.imshow(data_new)
plt.colorbar()
plt.show()
Answer:
Following are the answer to this question:
Explanation:
In option 1:
The value of n is= 7, which is (base case)
when n=k for the true condition:
when n=k+1 it tests the value:
since k>6 hence the value is KH>3 hence proved.
In option 2:
when:
for n=1:(base case)
0<=0 \\ condition is true
when the above statement holds value n=1
when n=k
when n=k+1
In option 3:
when n=1:
when n=k
hence n=k+1 is true.