Functions in Python
Functions in Python
Accessible only within the function in Accessible by all the functions in the
which it is declared. program.
It is created when the function starts It remains in existence for the entire
executing and is destroyed when the time the program is executing.
function execution is complete.
Output:
LONDON
NEW YORK
Pr. 1. Write a function count(Places) in Python, that takes the dictionary, Places as an argument and
displays the names(in uppercase) of the places whose names are longer than 5 characters.
Output:
LONDON
NEW YORK