deflikes(users):forfmtin['no one likes this','%s likes this','%s and %s like this','%s, %s and %s like this',]:try:returnfmt%tuple(users)exceptTypeError:passu1,u2,*rest=usersreturn'%s, %s and %s others like this'%(u1,u2,len(rest))
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Also Python, but using a different approach: