Advertisement
k1alo

Умножение каждого числа на множитель

Oct 27th, 2023
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.14 KB | None | 0 0
  1. numbers = [1, 2, 2, 3, 3, 4, 5]
  2. new_list = []
  3. for number in numbers:
  4.     number = number * 6
  5.     new_list.append(number)
  6. print(new_list)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement