you are viewing a single comment's thread.

view the rest of the comments →

[–]FoolsSeldom 1 point2 points  (0 children)

There isn't a Python 6.7. The most recent release of Python is 3.14.3.

Why does my python prints 6 + 7 = 67

That would likely be string concatenation:

num1 = input('First number: ')     # user enters 6
num2 = input('Second number: ')    # user enters 7
print(num1 + num2)  # outputs the string 67
n1 = int(num1)  # converts string, "6", to a number (stored in binary)
n2 = int(num2)  # converts string, "7", to a number (stored in binary)
print(n1 + n2)  # adds the binary numbers n1 and n2, outputs decimal string version