You are not logged in. Please login at www.codechef.com to post your questions!

×

EOF error problem while taking input.

I am unable to run any program in python 3 ide because of the EOF error on the first line itself while taking the input for the number of test cases. I used T = int(input()) Please provide a solution.

asked 05 Jan, 20:09

souravjyoti14's gravatar image

0★souravjyoti14
1
accept rate: 0%


use try / except e.g:

try:

   T = int(input())

except:

   pass
link

answered 05 Jan, 21:48

chauhain's gravatar image

4★chauhain
372
accept rate: 33%

edited 05 Jan, 21:49

Thank you. That worked.

link

answered 07 Jan, 14:06

souravjyoti's gravatar image

0★souravjyoti
1
accept rate: 0%

When I used try/except, it said 't' is not defined. What should I do?

link

answered 10 Feb, 17:31

goku548's gravatar image

0★goku548
1
accept rate: 0%

toggle preview
Preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported
  • mathemetical formulas in Latex between $ symbol

Question tags:

×267
×21

question asked: 05 Jan, 20:09

question was seen: 312 times

last updated: 10 Feb, 17:31