I'm trying to figure out how have something like "Enter an expression: " take in 3 variables: the first int, the character of the operation, and the second int. This is very easy in C++ with just cin >> num1 >> operation >> num2.
So far, per others' questions, I've tried taking in a list and splitting it. This works, except for integers with more than 1 digit. I'm doing something like this:
list1=raw_input()
list1.split()
print list1
num1=list1[0]
plus=list1[1]
num2=list1[2]
print num1, plus, num2
For example, entering 10+3 would output 1 0 + I feel like there's a simple fix here, but I don't know it. Any help is appreciated.