How to convert a decimal string to an integer in Python

preview_player
Показать описание
Python doesn’t allow converting a decimal string directly to an integer; however, we can first convert the str to a float and then convert the float to an int.

#shorts #pythonprogramming
Рекомендации по теме