+ 1

How do you make it so that whe running the code you have to input a number to run it?(Python)

This question is for the Python programming language.

17th Sep 2017, 3:43 AM
Mr.BoopyDooper
2 Respuestas
+ 1
thx
17th Sep 2017, 4:15 AM
Mr.BoopyDooper
- 1
use input keyword example : a=input("a number ->") b= input(" another number ->") c= int(a)+int(b) ## normal input takes everything as a string..u need to convert them as your use.. here i am adding so converted them into unteger using int keyword ## print(c) or u can direct do it.. print(int(input("1st number") + int(input("2nd number")
17th Sep 2017, 4:11 AM
sayan chandra
sayan chandra - avatar