- 2

How to run the multiple test cases in one program please explain me

29th May 2022, 2:48 AM
kottala vikram
11 Answers
+ 2
Just write a generic code which will satisfy all test cases.
29th May 2022, 6:03 AM
A͢J
A͢J - avatar
+ 1
kottala vikram If you know then what is the problem. Just write and run, all test cases will be pass.
29th May 2022, 12:51 PM
A͢J
A͢J - avatar
+ 1
kottala vikram Where did you take input? You are writing Hard Code value so how all test cases will be pass?
29th May 2022, 4:53 PM
A͢J
A͢J - avatar
0
No bro I am asking in any coding exam how to run multiple test cases
29th May 2022, 4:26 AM
kottala vikram
0
How bro I don't know please help me Take string reverse example Take the multiple inputs and show to me bro please
29th May 2022, 7:56 AM
kottala vikram
0
kottala vikram Do you know how to reverse a string?
29th May 2022, 8:02 AM
A͢J
A͢J - avatar
0
Yes bro I know
29th May 2022, 8:27 AM
kottala vikram
0
In single program only are each different input to write different program
29th May 2022, 12:53 PM
kottala vikram
0
kottala vikram Doesn't matter on different input. If you write generic code then doesn't matter what inputs are. For example: sum = int(input()) + int(input()) print (sum) This is a general logic to add 2 numbers. Output will depend on inputs. 1 + 2 = 3 2 + 3 = 5 No need to write different program.
29th May 2022, 12:59 PM
A͢J
A͢J - avatar
29th May 2022, 1:00 PM
kottala vikram
0
Please explain me this example
29th May 2022, 1:01 PM
kottala vikram