Python program to read a program from another file.
Problem Description: We need to read the contents from a python file in a program and print its content.
We will use the concepts of file handling in python and read and print a program from a file .
Program to illustrate the program
Main.py:
HirarchicalInheritance.py:
Output:
need an explanation for this answer? contact us directly to get an explanation for this answer