+ 1
How to read a integer and character from a single line of input separated by space?
1 ответ
0
when you get input in python it is automatically a string. to get an integer from an input you have to convert it using int (). Since you want both an int and a string from the input, you can use the str.split () method to divide the string at the space, then you can check which input is an int and convert it.
hope that helps, but feel free to ask a follow up!