Advanced Programming with Python

1 Write a program that displays the hierarchy in inheritance.

File Download
2 Write a program that shows the disk transfer in the Tower of Hanoi.

In the Tower of Hanoi, there are three bars with n disks, in which small disks are placed on a large disk and only one disk is transferred at each stage.

File Download
3 Write a program that shows how to build dedicated libraries.

An extra file (dedicated Fibonacci library) is required to run this program.

File Download
4 Library file for Fibonacci

Put this file in the folder you want to use as a library. Change the file extension to py.

File Download
5 Write a program that defines a class for the book and overloads the equality operator.

File Download
6 Write a program that overloads the + operator for all types of classes.

Interpretation + for numbers is plural and for string it means concatenation.

File Download
7 Write a program that overloads the larger operator for the class you want.

File Download
8 Write a program that overloads a class with smaller and equal operators.

File Download
9 Write a program that shows the overriding when inheriting.

File Download
10 Write a program that shows the overriding when inheriting.

File Download
11 Write a program that examines the overriding conditions for two separate classes, rectangular and square.

Classes without inheritance

File Download
Document