Advertisement
Guest User

Untitled

a guest
Apr 9th, 2020
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.20 KB | None | 0 0
  1. x = [-70, 11, -111, 85, 33, 59, 0]
  2.  
  3. x_res = []
  4. n = 6
  5.  
  6. for x_cor in x:
  7.     x_temp = []
  8.     for i in range(n):
  9.         x_temp.append(round(x_cor * (i + 1)/n, 2))
  10.     x_res.append(x_temp)
  11.  
  12. print(x_res)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement