[Tutor] Question

Alan Gauld alan.gauld at yahoo.co.uk
Tue Apr 11 18:37:48 EDT 2023


On 11/04/2023 18:21, Alan Gauld via Tutor wrote:

>>>>     if name in names and counter<=len(names):
>>>>       print(name,"your group is",group)
> 
>         else:
>            while name not in names:
>                name = input(...).casefold()
>                if name not in names:

Oops! That should be

if name in names:
    print(...)


-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos





More information about the Tutor mailing list