fatchadlitecel
Gymcel coper
- Aug 16, 2022
- 1,438
- 2,428
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: this_feature_currently_requires_accessing_site_using_safari
It does coding too JFLNon stem college assignments are gonna be a breeze with this new technology ngl, everyone will be passing and be educated.
[ICODE]import numpy as np #Define the size of the spiral matrix N = 5 #Initialize the matrix spiral_matrix = np.zeros((N,N)) #Populate the matrix #Start at the top-right corner, and traverse the matrix in a clockwise spiral row, col = 0, N-1 num = 1 #Define the direction we are moving direction = 0 #Fill in the spiral matrix while num <= N**2: spiral_matrix[row][col] = num num += 1 if direction == 0: col += 1 if col == N or spiral_matrix[row][col] != 0: direction = 1 col -= 1 row += 1 elif direction == 1: row += 1 if row == N or spiral_matrix[row][col] != 0: direction = 2 row -= 1 col -= 1 elif direction == 2: col -= 1 if col == -1 or spiral_matrix[row][col] != 0: direction = 3 col += 1 row -= 1 elif direction == 3: row -= 1 if row == -1 or spiral_matrix[row][col] != 0: direction = 0 row += 1 col += 1 #Write the matrix to a file np.savetxt("spiral_matrix.txt", spiral_matrix, fmt='%.0f')
[/ICODE]
how fucked are our future jobs?It does coding too JFL
Generate an N x N spiral matrix in python and write the output to a file
Idk but I suspect the first people to be cut loose will be outsourced Indians which right now are used as human code-completion tools. This will likely just be used as a code-completion tool to allow software developers to get more work done. Eventually though it's not impossible that it could eventually be taught to code-complete within the framework of existing code.how fucked are our future jobs?