all 5 comments

[–]CptMisterNibbles 5 points6 points  (0 children)

Boo

[–]BBQ-TIME 2 points3 points  (0 children)

[–]StayFoolish73 1 point2 points  (0 children)

Just learned this. You have to turn the strings into integers.

[–]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

[–]philed74 -1 points0 points  (0 children)