1.Write definition of method COUNTNOW(PLACES) to find and display
those place names in which there are more than 5 characters.
2.What happens when python encounters an import statement in a
program? What would happen if there is one more import statement for
the same module, already imported in the same program?
Share
Answer:
1.
def COUNTNOW(PLACES):
if len(PLACES)>5:
print(PLACES)
2.
If the import statement is found , the python imports the particular package to the file.
If same module is added more than once, nothing happens , the python doesnot throw any error.
Explanation: