How let the users just answer a num input in python | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 2

How let the users just answer a num input in python

I want to make an interface with user input

1st Aug 2018, 6:39 PM
Brayan Wilis
Brayan Wilis - avatar
2 Réponses
+ 2
Convert the input into an int or float... int(input()) float(input())
1st Aug 2018, 6:54 PM
TurtleShell
TurtleShell - avatar
+ 2
int(input("Number: "))
1st Aug 2018, 8:26 PM
Sousou
Sousou - avatar