write a defination of a method COUNTNOW
(places) to find and display these place name, in
which there are more than characters.
For example:
of the list Places contains [ Delhi", "LONOON" "PARIS"
"New YORK" "DUBAI"]
the following should get
displayed
LONDON NEW YORK (python programming language)
Attachments:
Answers
Answered by
6
Answer:
def COUNTNOW(places) :
for x in places :
if len(x) > 5 :
print(x)
places =["Delhi","London","Paris","New York","Dubai"]
COUNTNOW(places)
Explanation:
Hope it helps :-)
Similar questions
Hindi,
4 months ago
English,
4 months ago
Hindi,
4 months ago
English,
9 months ago
Math,
9 months ago
Business Studies,
11 months ago
Math,
11 months ago
Business Studies,
11 months ago