Answer:
Function sparse code is
def sparse(a):
rl = []
cl = []
for i in range(0,len(a)):
rl.append(a[i][1])
cl.append(a[i][2])
r = max(rl)
c = max(cl)
s = []
k = 0
for i in range(0,r+1):
s.append([])
for j in range(0,c+1):
if (i==a[k][1]) & (j == a[k][2]):
s[i].append(a[k][0])
k = k+1
else:
s[i].append(0)
return s
def main():
k = sparse([[3,1,2],[4,5,3]])
print(k)
if __name__ == '__main__':
main()
Explanation:
Please see attachment for output
Assuming that the user is talking about Microsoft Word, the options available when using the replace feature include replace, replace all, and find next. First, the Find what and Replace with boxes locates a word or phrase and replaces it with the new text. Selecting the replace option will update one instance while the replace all option will update all instances without stopping at each one. You can click on the Find Next several times until you come to the instance that you want to update.
Answer:
High level Language
understand
Explanation:
rocket is 0...4433456u888
Answer:
A subroutine is a block of statements that carries out one or more tasks. ... they share all variables with the rest of the main program. ... Once you have defined a function in your program, you may use it in any appropriate expression, such as: ... Thus, functions can- not change the values of the arguments passed to them.
Explanation: