+ 2

When i can use :int(input(''))

21st Apr 2019, 12:46 PM
Abdallah Ben Mansour
Abdallah Ben Mansour - avatar
2 Answers
+ 1
Yes!! Like a=int(input ("Enter......")
21st Apr 2019, 12:51 PM
Ramshek Rana
Ramshek Rana - avatar
0
A good example is if you want to add two numbers. In which case the code will be as follows: a = int(input(")) b = int(input(")) print(f"{a} + {b} = {a+b}")
23rd Apr 2019, 11:21 AM
Trigger
Trigger - avatar