X = input(“x: ”) Y = input(“y: ”)
Input takes in string
Print(x + y)
Simply concatenates them to become 1 + 2 = 12
Convert using int(x) and int(y)
CS50 library is better
Search
Dec 30, 20241 min read
X = input(“x: ”) Y = input(“y: ”)
Input takes in string
Print(x + y)
Simply concatenates them to become 1 + 2 = 12
Convert using int(x) and int(y)
CS50 library is better
Sep 22, 2024
Jul 02, 2024
Jul 02, 2024
Jun 30, 2024
Jun 19, 2024