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

int and float


x = 2
y = 3.14

print(x + 1.5)
print(y + 1)

Output:

3.5
4.140000000000001