Python Tutorial 4 : Convert String into Int Data Type

preview_player
Показать описание
Python Tutorial 4 : Convert String into Int Data Type
Taking the input from user using input() function which returns a value in string data type. Then, we will convert the input into integer data type and perform arithmetic operation on it for example arithmetic operations.
Рекомендации по теме
Комментарии
Автор

age=int(input("Enter your age: "))
Jyada better hoga sayad..

vishalsahu
Автор

X="ram"
Print(int(x))

Leads to error y

u
welcome to shbcf.ru