Advanced Programming with Python

1 Write a program that performs calculator operations graphically.

Using the tkinter library

File Download
2 Write a program that shows the general form of using the tkinter library and how to specify the title.

File Download
3 Eclipse installation tips

Use the link https://www.ics.uci.edu/~pattis/common/handouts/pythoneclipsejava/eclipsepython.html and run it step by step. You may need to use a VPN at times

File Download
4 Write a program that shows how to handle exceptions.

Without having a non-exceptional mode

File Download
5 Write a program that reads, sorts, and displays data about three students.

Read and write in binary file.

File Download
6 Write a program that shows the general form of using the tkinter library.

File Download
7 Write a program that shows the general form of using the tkinter library and how to use the spinbox.

File Download
8 Write a program that demonstrates working with text files.

Use the os library.

File Download
9 Write a program that shows handling exceptions without exceptions.

File Download
10 Write a program that first reads the specifications of the three books, sorts them by price, and then displays them.

File Download
11 Write a program that displays the general form of using the tkinter library and the stop button.

File Download
12 Write a program that shows the general form of using the tkinter library and how to use the panel window.

File Download
13 Step-by-step tutorial on Python programming

Special thanks to Dr. Javad Vahidi and Dr. Ramadan Abbasnejadvarzi

File Download
14 Write a program that shows handling exceptions without exceptions.

Open the file is an exception.

File Download
15 Write a program that reads the details of the three shops, sorts them by shop name, and then displays them.

File Download
16 Write a program that shows the general form of using the tkinter library and drawing the line.

File Download
17 Write a program that shows the general form of using the tkinter library and how to use the button menus.

File Download
18 Write a program that guesses a number in a maximum of five steps.

Use three libraries: sys, time and random.

File Download
19 Write a program that shows access to local and non-local variables within the function.

File Download
20 Write a program that reads the details of the three goods, sorts them by goods name, and then displays them.

File Download
21 Write a program that displays the general form of using the tkinter library and the check button.

File Download
22 Write a program that shows the general form of using the tkinter library and how to use thechecked buttons.

File Download
23 Write a program that performs mathematical operations such as squared, logarithm, factorial, sine, and so on.

Use the math library.

File Download
24 Write a program that shows access to the local and global variables within the function.

File Download
25 Write a program that reads the details of the three sellers, sorts them by seller name, and then displays them.

File Download
26 Write a program that shows the general form of using the tkinter library and labels and data input.

File Download
27 Write a program that shows the general form of using the thread library.

File Download
28 Write a program that writes a class object to a binary file and then reads and displays it.

The binary file is used to manage different instances of a class.

File Download
29 Write a program that shows access to local and global variables within the nested function.

File Download
30 Write a program that reads the details of the three buyers, sorts them by buyer name, and then displays them.

File Download
31 Write a program that shows the general form of using the tkinter library and the properties of the buttons.

File Download
32 Write a program that shows the general form of using the thread library.

File Download
33 Write a program that performs statistical operations such as mean, median, standard deviation, and mode.

Use the statistics library.

File Download
34 Write a program that shows access to local and global variables within the nested function.

File Download
35 Write a program that reads the details of the three sales, sorts them by buyer code, and then displays them.

File Download
36 Write a program that shows the general form of using the tkinter library and labels.

File Download
37 Write a program that shows the general form of using the threading library.

File Download
38 Write a program that shows two different ways to write to and read from a text file.

The seek sub-program is used to change the internal position of the file.

File Download
39 Write a program that shows access to local and global variables within the nested function.

File Download
40 Write a program that shows the general form of using the tkinter library and the listbox.

File Download
41 Write a program that shows the general form of using the threading library.

File Download
42 Write a program that demonstrates working with collections.

Use the collections library.

File Download
43 Write a program that shows the general form of using the tkinter library and the menu.

File Download
44 Write a program that shows the general form of using the re library.

File Download
45 Write a program that shows how to use append mode in a text file.

The append mode is the state where at the beginning of the file opening, the position of the file is placed at the end of the file.

File Download
46 Write a program that shows the general form of using the tkinter library and the menu and separator inside it.

File Download
47 Write a program that shows the general form of using the re library.

File Download
48 Write a program that shows how to work with the list of collections.

Use the collections library.

File Download
49 Write a program that shows the general form of using the tkinter library and the message.

File Download
50 Write a program that shows the general form of using the re library.

File Download
51 Write a program that displays the specifications of the current file and sets the position of the text file in a specific position.

The current file refers to the file that is running.

File Download
52 Write a program that shows the general form of using the tkinter library and the radio button.

File Download
53 Write a program that shows the general form of using the re library.

File Download
54 Write a program that simply displays a polymorphic property.

File Download
55 Write a program that shows the general form of using the tkinter library and the horizontal / vertical bar of the progress bar.

File Download
56 Write a program that demonstrates the use of the tell function in text files.

The tell function in text files shows the next position of the file position indicator. This action is used to make the right decision whether or not to continue reading / writing in the file.

File Download
57 Write a program that shows the general form of using the tkinter library and the listbox and scroll it.

File Download
58 Write a program that shows working with a list of objects from different but homogeneous classes.

The Indian and Japanese classes are considered to be two classes of the same nature.

File Download
59 Write a program that shows the general form of using the tkinter library and how to insert content into it.

File Download
60 Write a program to open a text file as r + and write to it.

The r+ mode in text files is the mode used for reading, which can also be written while reading.

File Download
61 Write a program that displays a list of homogeneous classes and displays the method call from that list inside the loop.

Classes India, Japan, and Iran are assumed to be three classes of the same nature.

File Download
62 Write a program that shows how to use the a + mode in text files.

In a + mode, in addition to placing the file position indicator at the end of the file, it is possible to read and write in the file.

File Download
63 Write a program whose subroutine takes a public object as an argument and calls its methods.

Classes India, Japan, and Iran are assumed to be three classes of the same nature.

64 Write a program that shows the line-by-line reading of the file.

File Download
65 Write a program that inherits sparrow and ostrich classes from the bird class.

Explain the property of overriding.

File Download
66 Write a program that reads several lines of a file at once and then processes them.

File Download
67 Write a program in which the employee class has a constructive and destructive method.

Pay attention to the time and place of calling constructive and destructive methods, as well as the automatic nature of the calls.

File Download
68 Write a program that explains the time and place of the destructive method in the employee class.

File Download
69 Write a program that displays the hierarchy in inheritance.

File Download
70 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
71 Write a program that shows how to build dedicated libraries.

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

File Download
72 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
73 Write a program that defines a class for the book and overloads the equality operator.

File Download
74 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
75 Write a program that overloads the larger operator for the class you want.

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

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

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

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

Classes without inheritance

File Download
80 A program that shows the sum of two integers.

In this program, the sum of two integers shows that these two integers are fixed.

File Download
81 Write a program that reads two integers and displays the sum of them.

Use the input command to read and convert it to an integer (casting)

File Download
82 Write a program that reads an integer and determines whether the number is even or odd.

Use the% operator for the remainder of the division

File Download
83 Write a program that reads and displays ten integers.

Use the for loop

File Download
84 Write a program that reads ten integers and displays only even numbers.

Use the for loop and the if selection structure inside the loop

File Download
85 Write a program that reads ten integers and determines whether the number read is prime or not.

A prime number is a number that is not divisible by any number other than itself and the number one. Like the number 13

File Download
86 Write a program that reads the number of rows and columns of the matrix, then reads and displays the matrix assets.

The matrix values will be read in rows.

File Download
87 Write a program that adds and then displays two fixed 3*4 matrices.

File Download
88 Write a program that displays the divisors of an integer.

Use subroutines to display the divisors of a number.

File Download
89 Write a program that reads, sorts, and displays ten integers.

Without using loop structure and using separator and mapping

File Download
90 Write a program that reads an integer and calculates and displays its factorial.

Non-recursive factorial calculation

File Download
91 Write a program that reads an integer and calculates and displays its factorial.

Factorial calculation in a function and recursively (with low execution speed compared to non-recursive)

File Download
92 Write a program that reads and displays the names of five companies.

Use strings

File Download
93 Write a program that reads the coefficients of the quadratic equation and shows its roots.

File Download
94 Write a program that reads an integer between zero and one hundred and displays the score.

File Download
95 Write a program that reads an integer and displays its multiples.

Use the for loop structure with negative steps

File Download
96 Write a program that reads a string and counts the number of digits used in it.

File Download
97 Write a program that reads an integer and identifies what day of the week that number belongs to.

It is assumed that the first day of the week is Saturday and the first of the month begins with Saturday.

File Download
98 Write a program that reads an integer and displays complete integers smaller than that integer.

Using two functions, one to identify the divisors of an integer and the other to examine the equality of the sum of the divisors of a number with the number itself

File Download
99 Write a program that reads an integer and displays all smaller square numbers.

A square number is a number that can be obtained from the square of an integer.

File Download
100 Write a program in Python that displays between two thousand and ten thousand numbers that can be divided into seven parts and none of the digits is zero.

Use the function to detect the absence of zeros in the digits of numbers.

File Download
101 Write a program that reads an integer and displays the divisors of that number.

Use the subroutine to display the divisors of a number

File Download
102 Write a program that reads two integers and shows the smallest common multiple and the largest divisor of two.

Use two functions to calculate the smallest common multiple and the largest common divisor of two numbers.

File Download
103 Write a program that reads two large integers and calculates and displays the smallest common multiple and the largest common divisor of two numbers optimally.

Use two functions to calculate the smallest common multiple and the largest common divisor of two numbers. The optimal method for calculating large numbers

File Download
104 Write a program that reads the names of ten colors and displays colors that are less than five in length.

File Download
105 Write a program in Python that reads two square matrices and shows the addition and multiplication of two matrices.

A square matrix is a matrix whose number of rows and columns are equal.

File Download
106 Write a program in Python that reads the names of ten students and displays them if there is no number in the student name.

Detect the existence of a digit in a string by a function with a logical output.

File Download
107 Write a program in Python that reads the names of ten students and processes the names of the students.

Student Name Processing: All letters except the first character are minimized.

File Download
108 Write a program in Python that reads the names of five students, then reads the last names of the same five students, and finally displays the full names of the five students.

A program that demonstrates the need for logical grouping between attributes.

File Download
109 Write a program in Python that reads and displays name / surname and grade point average data for five students.

Without using the concept of class

File Download
110 Write a program that reads the data of the elements of a matrix and displays only the elements that are prime.

The prime recognition of the number and reading of the data of the matrix components is done by the functions.

File Download
111 Write a program that reads a square matrix and displays the values of the principal and lower diameters of a triangle

Main diameter: elements whose rows and columns are equal. Bottom of the triangle: All objects on the main diameter and bottom of the main diameter

File Download
112 Write a program that reads the names of ten students, then sorts and displays them.

Read, sort, and display student names in sub-programs.

File Download
113 Write a program that reads ten integers and puts them in a list and displays only even numbers.

Read, recognize even numbers and display them under programs.

File Download
114 Write a program that displays the closure property with the addition function.

The context property for functions is the output of the function equal to the input of the functions (at least one input). This property causes nested functions to be used.

File Download
115 Write a program that reads ten integers and displays zero instead of even numbers and one instead of odd numbers.

Use subroutines.

File Download
116 Write a program that reads the address and city name and searches to see if the city name is part of the address.

Uppercase and lowercase letters in the address and city are not important. (Address and city should be entered in English)

File Download
117 Write a program that calculates the first ten Fibonacci numbers.

In Fibonacci numbers, each number is obtained from the sum of the previous two numbers, and this series of numbers starts with zero and one.

File Download
118 Write a program that calculates the first three hundred numbers of the Fibonacci series dynamically.

In dynamic programming, low-index numbers are calculated from high-index numbers and have low memory consumption and high execution speed.

File Download
119 Write a program that shows how to work with Tuples.

Actions such as merge, add, search, display

File Download
120 Write a program that demonstrates working with sets.

Actions: Add, search, view, delete and calculate the number of members

File Download
121 Write a program in Python that displays actions such as union, delete, and display on sets.

The order of the members does not matter in the sets. Run this program several times and interpret the outputs.

File Download
122 Write a program in Python that shows how to use the dictionary data type.

Dictionary data type is based on index/value. Index and value can accept a variety of data types.

File Download
123 Write a program in Python that shows that the function can have multiple values of the Tupel type.

Usually, in other popular languages, it has a value function.

File Download
124 Write a program in Python that shows that the function can output multiple values of the list type.

Usually, in other popular languages, it has a value function.

File Download
125 Write a program in Python that shows that the function can output multiple values of the dictionary type.

Usually, in other popular languages, it has a value function.

File Download
126 Write a program in Python that defines a person's class and builds and uses an object.

Use the date/time library to calculate a person's age. The class has a constructor. The person's age is calculated based on the difference between the current date and the date of birth.

File Download
127 Write a program in Python that defines a class for the car and defines and uses an object of the car class.

Define a constructor for the class. Define in-class attributes privately. Use the set and get methods to access private attributes.

File Download
128 Write a program in Python that inherits student and teacher classes from the person.

The constructor method for specific classes uses the general class constructor method. Use output based on a specific format.

File Download
129 Write a program in Python that the Employee class inherits from the person and uses the overriding property to identify the employee.

Overriding property: methods have the same name and signature, - Recognize the implementation of the desired method based on the object

File Download
130 Write a program in Python that shows how to use the constructor between classes if inherited.

Demonstrate constructive priority between parent and child class

File Download
Document