fork download
  1. def checkLetter(kataPertama:str, kataKedua:str)-> bool:
  2. kataPertamaLower = kataPertama.lower()
  3. kataKeduaLower = kataKedua.lower()
  4. for i in kataPertamaLower:
  5. if i not in kataKeduaLower:
  6. return False
  7. return True
  8.  
  9. print(checkLetter('cat','antarctica'))
  10. print(checkLetter('cat','australia'))
  11. print(checkLetter('cat','ANTARCTICA'))
Success #stdin #stdout 0.03s 9660KB
stdin
Standard input is empty
stdout
True
False
True