Python Week 9 2021

Python Week 9 2021


Q.1

a = input()
i = input()
b = a.split(' ')
for j in b:
  k = b.count(j)
  if(int(i) == k):
    print(j,end='')
    exit()


Q.2


def ispangram(str): 
    alphabet = "abcdefghijklmnopqrstuvwxyz"
    for char in alphabet: 
        if char not in str.lower(): 
            return False
    return True 
string = input()
if(ispangram(string) == True): 
    print("Yes",end='') 
else: 
    print("No",end='') 



Q.3


s = input()
alphabet = "aeiouAEIOU"
for ch in alphabet: 
  s = s.replace(ch, '')
print(s,end='')




Post a Comment (0)