Re: [Tutor] Need help with find error

2015-02-04 Thread Danny Yoo
As a revision of my initial question, when we look at next_block(), it's documented as follows: def next_block(the_file): """Return the next block of data from the trivia file.""" What if there

Re: [Tutor] Need help with find error

2015-02-04 Thread Danny Yoo
On Wed, Feb 4, 2015 at 1:01 AM, Андрей Пугачев wrote: > Hi > I'm learning python a few weeks and have problems with code that read text > from txt-file > Code doing all right, but in the end I have error > > Traceback (most recent call last): > File "trivia_challenge.py", line 81, in > main

Re: [Tutor] Need help with find error

2015-02-04 Thread Peter Otten
Андрей Пугачев wrote: > Hi > I'm learning python a few weeks and have problems with code that read text > from txt-file > Code doing all right, but in the end I have error > > Traceback (most recent call last): > File "trivia_challenge.py", line 81, in > main() > File "trivia_challenge.p

Re: [Tutor] Need help with find error

2015-02-04 Thread Alan Gauld
On 04/02/15 09:01, Андрей Пугачев wrote: Code doing all right, but in the end I have error Traceback (most recent call last): File "trivia_challenge.py", line 81, in main() File "trivia_challenge.py", line 74, in main category, question, answers, correct, explanation, points =

[Tutor] Need help with find error

2015-02-04 Thread Андрей Пугачев
Hi I'm learning python a few weeks and have problems with code that read text from txt-file Code doing all right, but in the end I have error Traceback (most recent call last): File "trivia_challenge.py", line 81, in main() File "trivia_challenge.py", line 74, in main category, questi