What version of Python are you using?
How is 'username' defined and how is the value being assigned to it?

Cheers,

Jon

On Fri, Mar 19, 2021 at 5:49 AM Ekkam Singh <[email protected]> wrote:

> hi
> i am writing a code in python but it is coming error when i write the
> program :-
> for line in username:
>                 content = username.split(' , ')
>                 if content[0] == userName:
>                                 content[1] = score
>                                 line = content[0] + ', ' + content[1] +
> '\n'
> it is coming error :
> AttributeError: '_io.TextIOWrapper' object has no attribute 'split'
>
> --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to the Google Groups
> "BeagleBoard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/beagleboard/35de0395-e66c-41e4-b574-0a52dd6d7bc8n%40googlegroups.com
> <https://groups.google.com/d/msgid/beagleboard/35de0395-e66c-41e4-b574-0a52dd6d7bc8n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CAG99bkrPtt2o6o0Uu5Sq0xVCoNjeF0sGgEXMxdbvot4qSaMMTQ%40mail.gmail.com.

Reply via email to