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…

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 .

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

Python course in Ahmednagar

SevenMentor provides Python course in Ahmednagar will make you an expert in Python Programming with Django Framework. Learn Python from our industry experts and get Practical exposure in Python libraries functions, classes, and variables for data analysis and data visualizations with Real-World Projects. Become the Best Python Developer by enrolling at our Online and Classroom training.