Advanced Programming with Python

1 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
2 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
3 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
4 Write a program that reads and displays ten integers.

Use the for loop

File Download
5 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
6 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
7 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
8 Write a program that adds and then displays two fixed 3*4 matrices.

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

Use subroutines to display the divisors of a number.

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

Without using loop structure and using separator and mapping

File Download
Document