+ 2
friends how should I correct this(line 6)?
import numpy as np r = int(input()) lst = [float(x) for x in input().split()] arr_ABD = np.array(lst) arr_ABD = arr_ABD.reshape(r,int(len(lst)/r)) print(arr_ABD.round(2))
2 Antworten
+ 2
#What error you getting?
#May be you are trying this..!
import numpy as np
r = int(input())
lst = [float(x) for x in input().split()]
arr_ABD = np.array(lst)
arr_ABD = arr_ABD.reshape(r,int(len(lst)/r))
print(arr_ABD.round(2))
+ 2
thank you. it worked. :)