+ 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))

17th Oct 2021, 5:00 PM
Tree
Tree - avatar
2 Respostas
+ 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))
17th Oct 2021, 5:43 PM
Jayakrishna 🇮🇳
+ 2
thank you. it worked. :)
17th Oct 2021, 5:48 PM
Tree
Tree - avatar