Python - Cast str to int

preview_player
Показать описание
Learn how to cast a Python str into int (string to integer), while handling possible errors. Very useful when you need to ask the user for an input and use it as a number in your code!

0:00 Intro
0:16 Check type of a number written with quotes
0:44 Cast str to int
1:15 Handle exceptions when casting str to int
2:53 Example with user input
4:06 Outro

Рекомендации по теме
welcome to shbcf.ru