(1) Import string?
tt='555 '
ts=string.atoi(tt)
Ts is the number that tt is converted into.
Converted to floating-point number string.atof(tt)
(2) Direct integration
Int(tt) will do.
Recommended course: Python Introduction and Advanced Teaching Video (Geek College)