We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
if City Name starts from 'A' which is not in the set of ('a', 'e', 'i', 'o', 'u'). then it will give wrong result.
So either use ('A', 'a', 'E', 'e', 'I', 'i', 'O', 'o', 'U', 'u') as a set to test or use lower method. i think lower is much better to use.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Weather Observation Station 6
You are viewing a single comment's thread. Return to all comments →
if you don not use lower then
if City Name starts from 'A' which is not in the set of ('a', 'e', 'i', 'o', 'u'). then it will give wrong result. So either use ('A', 'a', 'E', 'e', 'I', 'i', 'O', 'o', 'U', 'u') as a set to test or use lower method. i think lower is much better to use.