Horje
python - input: integer Code Example
python - input: integer
birth_year = input("enter birth year: "); //input takes birth_year as STRING
age = 2022- int(birth_year);			  //birth_year is converted in INT

//other built in functions used for converting: int (), float (), bool(), str()




Python

Related
python SMTP sendmail Code Example python SMTP sendmail Code Example
<ipython-input-7-474520f490a8> Code Example <ipython-input-7-474520f490a8> Code Example
top automotive blogs Code Example top automotive blogs Code Example
Allow Complex Number like "1+2j" to be treated as valid number Code Example Allow Complex Number like "1+2j" to be treated as valid number Code Example
cx_freeze include images in specific path Code Example cx_freeze include images in specific path Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7