Computer Science, asked by sanjanachakalabbi, 9 months ago


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 sswaraj04
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