0

How do we take inputs in a test case problems in python?

29th Apr 2020, 9:36 PM
Kaushal Kumar Choudhary
Kaushal Kumar Choudhary - avatar
2 Respuestas
+ 1
If you are talking about code coach problems, then we are restrict from taking inputs. in python: num = int(input()) why Casting (with int())? Because by default input taken from user in python is STRING type.
29th Apr 2020, 9:52 PM
minirkk
minirkk - avatar
0
Just use input() as you normally would. The inputs will be put in automatically.
29th Apr 2020, 9:51 PM
Russ
Russ - avatar