Solution Exrcise 513 list of numbers divisible par 7
Exercise 513 Create a python algorithm which determines the list of tuples of digits (n, m), such as: the integer x=142nm is divisible by 7. Example for (m, n) =…
Python Courses & Exercises with solutions !
Exercise 513 Create a python algorithm which determines the list of tuples of digits (n, m), such as: the integer x=142nm is divisible by 7. Example for (m, n) =…
Exercise 63 Write a program in Python language that asks the user to enter an integer n and display it if this number is prime or not. Solution # Enter…
Exercise 201 Write an algorithm as a python function that takes as parameters an integer n and which returns the list of divisors d whose last digit is equal to…
Exercise 200 Write an algorithm as python function which takes as parameters an integer n and which returns the last digit of n. Solution def lastDijit(n): # The last digit…
Exercise 100 Create an algorithm in Python as a function that gives the solution of a quadratic equation ax ^ 2 + bx + c = 0. Solution from math…
Exercise 81 Create a Python algorithm that calculates the number of ways to pay 10 Euros, using the 1 Euro, 2 Euro and 5 Euro coins. Solution # initialize number…
Exercise202 Create a Tkinter GUI interface, which calculates the greatest common divisor GCD and the least common multiple LCM graphically as shown in the figure below: Solution from tkinter import…