Write a program to accept a string if it contains all vowels


Topic: Write a program to accept a string if it contains all vowels

Solution

def check(string): 
  if len(set(string).intersection("AEIOUaeiou"))>=5: 
    return ('accepted') 
  else: 
    return ("not accepted") 
  
if __name__=="__main__": 
  string="helloworld"
  print(check(string)) 
  



List all Python Programs