0

Taking multiple input values

https://www.sololearn.com/coach/3?ref=app How to take 2 input values? For example, Input: 3 6

15th Sep 2020, 5:56 PM
Sabokhat Kalandarova
Sabokhat Kalandarova - avatar
1 Antwort
0
There are 2 methods 1st method a,b=map(int,input().split()) 2nd method a,b=input.split() a=int(a) b=int(b) 1st method taking input as an integer. 2nd method taking input as a string and converting to integer.
15th Sep 2020, 6:00 PM
Varshith
Varshith - avatar