How do an input make in python,indendent of "type value"? | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
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 Respuesta
0
x=raw_input() num=int(x) print type(num)
15th Oct 2017, 6:46 PM
davidgm17