0

I encountered a problem in the python code

I have done something wrong in the code. Can someone explain what wrong have I done and the logic behind the code https://code.sololearn.com/cV1o8PC9l1o9/?ref=app

27th Jun 2022, 12:41 PM
<k>Kartik</k>
4 Answers
+ 2
works fine for me. What error are you getting?
27th Jun 2022, 12:43 PM
Abhay
Abhay - avatar
+ 2
I don't see anything wrong, but there is one possibility, which can happen if you supplied less then 5 names in the input dialog. You may get EOFError on such event.
27th Jun 2022, 12:46 PM
Ipang
+ 2
Ipang Oh😅, I forgot to add five names. Thank you so much.
27th Jun 2022, 12:47 PM
<k>Kartik</k>
0
Abhay EOF in line 4
27th Jun 2022, 12:44 PM
<k>Kartik</k>