+ 1
Does the input function always takes inputs as strings?
2 Respuestas
+ 1
Yes, but you can convert it to other types if needed. For example, you can use int(input()) to convert input to an integer. input().split() will convert the input into a list, by spaces or any string you provide to it. There are a couple others.
+ 5
Yes.
https://docs.python.org/3/library/functions.html#input