cara mendapatkan hanya string input, bukan spasi -spaces di python

use .strip() function in the input() line
Inquisitive Ibex