How do an input make in python,indendent of "type value"? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How do an input make in python,indendent of "type value"?

Python 2.7 uses "raw_input()" to string And "inputs()" to int ir float.

15th Oct 2017, 7:39 AM
davidgm17
1 Answer
0
x=raw_input() num=int(x) print type(num)
15th Oct 2017, 6:46 PM
davidgm17