s = '188 990 тг'x = int(''.join(c for c in s if c.isnumeric()))print(x)
Standard input is empty
188990
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!