Doubt regarding taking input


#1

Guys could u help me how to take input in codechef. I am getting eof error while running code in python


#2

Refer here


#3

test_input=input() #gets input in string
test_input=int(input()) #to get integer input


#4

I think you may be having issues while taking space separated input.

If you’re using Python 3, take space separated input like this:

A, B = map(int, input().spit())

If you have to take a complete list as input, with space separated values, use this:

L = list(map(int, input().split())

Change int if you won’t be taking integer values as input.


#5

Best way to learn is check past programs of coders
you can check codes of people who code in py