**New course!**Every coder should learn

**Generative AI!**

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

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