Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- num = int(input())
- lenght = int(input())
- output = []
- for i in range(1, lenght + 1):
- output.append(num * i)
- print(output)
- Или:
- num = int(input())
- lenght = int(input())
- output = [x * num for x in list(range(1, lenght + 1))]
- print(output)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement