In: Computer Science
#python
Program:
The Result of the above program is as below:
Please go thorugh it and let me know if need any further assistence on this code. Am glad to help you if any.. If you need this file in text file. please let me know..