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 ответ
0
x=raw_input() num=int(x) print type(num)
15th Oct 2017, 6:46 PM
davidgm17