what is wrong in code

https://replit.com/join/vckdsjrtlv-rocky321..htis my replit for day4 for who is going to pay bill.what is wrong in my code that i have return

You are viewing a single comment. View All

I don't see anything wrong with the code, you just need to have a comma and a space between the names.
Also, you don't need to get a random int and use that as the index for your list, you can just use random.choice(list) to get a random item from a list.
Shorten your code down to:



random.choice we can't use,see the result in replit,
on putting name in input cheak for len function it give 1 as ans but ir should be 3 if input name are 3


Ok, then just do this: