from itertools import count, islice n = 3qtd = 5 multiplos = list(islice(count(n, n), qtd))print(multiplos)
Standard input is empty
[3, 6, 9, 12, 15]
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!