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
Math,
5 months ago
English,
5 months ago
Physics,
5 months ago
English,
10 months ago
Math,
10 months ago
Business Studies,
1 year ago
Business Studies,
1 year ago