Write a python function that would read the given input file path and print its contents


Topic: Write a python function that would read the given input file path and print its contents

Solution

def read_and_print_file(filepath):
    with open(filepath, "r") as infile:
        print( infile.read() )



List all Python Programs