Advanced Programming with Python

1 Write a program that reads an integer and calculates and displays its factorial.

Non-recursive factorial calculation

File Download
2 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
3 Write a program that reads and displays the names of five companies.

Use strings

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

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

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

Use the for loop structure with negative steps

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

File Download
8 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
9 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
10 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
Document