python submission

can you tell me how to submit the program written in python.
if i submit the program which i written in python, it shows wrong ans… but same program which i written in java shows no error. executes correctly… pls can you help me with this…

Its hard to guess what could have been your mistake, It would be better if you gave the link to your submissions [Java and Python] so that we can help you reason with this.

1 Like

If a group of numbers is given as input with just spaces like this
22 2 5 6
23 5 7 9
Java and C++ automatically tokenize the input strings and assign them to appropriate int values but python cannot do that for you . You have to explicitly tokenize the string input and assign the values to appropriate variable .