Short way to convert string to int [duplicate]

my_input = int(my_input)

There is no shorter way than using the int function (as you mention)

Leave a Comment