Write python program to create factors of numbers

Assignment Help Python Programming
Reference no: EM1382076

Write down a python program which takes two numbers and creates the factors of both numbers and displays the greatest common factor.

Example:
Input:
Number 1: 36
Number 2: 54
Output:
The factors of 36 are 1, 2, 3, 4, 6, 9, 12, 18, and 36
The factors of 54 are 1, 2, 3, 6, 9, 18, 27, and 54
The greatest common factor is 18

Reference no: EM1382076

Questions Cloud

Public policy issues-poverty and corporate welfare : Choose one of the public policy issues discussed (poverty, corporate welfare, or outsourcing), do some additional research on your chosen topic, and present your findings here.
Elements and functions of goddess myths : The elements and functions of goddess myths are explored such as earth, social order, and birth. Also, the basic functions of the goddess myth are discussed.
Expected fitness of the b/b homozygote relative : Does this represent a significant section from the Hardy-Weinberg ratios? Further studies show that the absence of the A/A genotype is due to the lethal effect of the A allele when homozygous.
Reliable method to estimate driving speeds : Determine the more reliable method to estimate driving speeds and miles per gallon by using (a) official statistics on highway traffic from the Environmental Protection Agency
Write python program to create factors of numbers : Write down a python program which takes two numbers and creates the factors of both numbers and displays the greatest common factor.
Find commercial web site show bleeding edge technology error : Visit the Internet and discover commercial Web sites which show each of the common errors listed below. Give links to those Websites in Microsoft Word document.
Test pseudocode by creating test plans and desk checks : Write down pseudocode for main menu. Write pseudocode for options, only code to navigate menu is required. Sketch flowchart for a main menu.
Question about mendelian genetics : Huntington disease is a rare dominant train auses neurodegeneration later in life. A man in his 30, who already has 3 children discoers his mother has huntingtons disease.
Estimating the value of time lost driving : Determine the assumptions that govern estimates of the value of time lost driving, indicating which assumptions (if any) are more tenable than others. Justify your position.

Reviews

Write a Review

Python Programming Questions & Answers

  Write python program which imports three dictionaries

Write a Python program called hours.py which imports three dictionaries, and uses the data in them to calculate how many hours each person has spent in the lab.

  Python function to calculate two roots

Write a Python function main() to calculate two roots. You must input a,b and c from keyboard, and then print two roots. Suppose the discriminant D= b2-4ac is positive.

  Write a python program to implement the diff command

Without using the system() function to call any bash commands, write a python program that will implement a simple version of the diff command.

  Design program that asks user to enter amount in python

IN Python Design a program that asks the user to enter the amount that he or she has budget in a month. A loop should then prompt the user to enter his or her expenses for the month.

  Prepare a python program

Prepare a Python program which evaluates how many stuck numbers there are in a range of integers. The range will be input as two command-line arguments.

  Python atm program to enter account number

Write a simple Python ATM program. Ask user to enter their account number, and print their initail balance. (Just make one up). Ask them if they wish to make deposit or withdrawal.

  Write a program for checking a circle

Write a program for checking a circle program must either print "is a circle: YES" or "is a circle: NO", appropriately.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd