Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Integers + 3

from series import integers

n3  = (n+3 for n in integers())
# n3 = integers(3)
for i in n3:
    print(i)
    if i >= 10:
        break

Output:

4
5
6
7
8
9
10