So you want the user to enter something like this:
42/6
Then you need to "parse" this string, that means to identify the numbers and symbols, so you can determine what operation to perform.
The most convenient way would be to use regular expressions, but that could be a little bit rough for a beginner. Anyway the
Python course does cover it.
https://www.sololearn.com/learn/Python/2475/
If you simplify the problem and make the assumption that the input must be 3 characters, and you only accept single digits, then you can use indexing on the input string, for example
a = int(text[0])
op = text[1]
Or you can make a rule that there must be a space between numbers and operand, and use the split() function to separate the input data into a list.