How to convert input in python to int | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to convert input in python to int

Python.

19th Nov 2019, 5:16 AM
Titas Saha
2 Answers
+ 7
a=int(input ("enter a no. "))
19th Nov 2019, 5:48 AM
Saurabh B
Saurabh B - avatar
+ 3
By just telling your system that it is integer , Saurabh B have already told the syntax
19th Nov 2019, 8:41 AM
Arsenic
Arsenic - avatar