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
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
