Advertisements
Advertisements
प्रश्न
Predict the output of the following Python code:
wildlife_sanctuary = ["Kaziranga", "Ranthambhore", "Jim Corbett", "Sundarbans",
"Periyar", "Gir", "Bandipur"]
output = [ ]
for sanctuary in wildlife_sanctuary:
if sanctuary[−1] in 'aeiou':
output.append(sanctuary[0].upper())
print(output)अति संक्षिप्त उत्तर
Advertisements
उत्तर
['K', 'R']
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
