Ad
  • Custom User Avatar
        else:
            found = False
    if not found:
        print('Welcome')
    

    can anyone explain why am i getting an error on line if not found: saying it has no value?
    i tried using a return statement in all 3 areas possible above the if not found: still same error.

  • Custom User Avatar

    So I'm trying to use the inputs to grab the index from one of the lists, then use the index to grab the string from the other list. I think it's failing to look for the input in list 1 which is why I'm not getting any indexes. I wrote:

       for language in langlist:
          i = langlist.index()
    

    then later:

       return greetlist[i]
    

    Does anyone know what I might be doing wrong?

  • Custom User Avatar

    JS version:

    assertSimilar is deprecated, use assertDeepEquals