Python how to square on input list? Ex: input: 7, output: [0, 1, 4, 9, 16, 25, 36, 49]

后端 未结 0 1961
清歌不尽
清歌不尽 2020-12-23 10:49

i\'m trying to write a function where user can input a list of numbers, and then each number gets squared based on range 0 to n. For example, i want to input 7 and then the

相关标签:
回答
  • 消灭零回复
提交回复
热议问题