subject

Warm up: simplify fraction (python 3) overview: we ask the user for the numerator and denominator of a fraction and compute its simplified form. ask the user for a fraction. the fraction should have the format integer/integer. you will need to parse the input on the forward slash to find the numerator and denominator. computer the gcd divide both by the gcd and print out the new fraction the greatest commorn demoninator of two integers is easy to implement recursively. you will not receive credit if your solution is not recursive. if the denominator is 1, then only print the numerator. do not print 5/1, just print 5. the gcd function must have the format def gcd(a, b). the goda,0)=a for any integer a. for all other values in the second input, gcd(ab)-gcd(b, a % b) ask for fractions and simplify them until the user enters 'exit' as their fraction. remember to include if name_main_" so zybooks can include your functions for testing example welcome to fraction simplifier type "exit" to quit enter fraction (int/int): 125/55 simplified fraction enter fraction (int/int): 8/2 simplified fraction enter fraction (int/int): 27/9 simplified fraction enter fraction (int/int): 76/92 simplified fraction 19/23 enter fraction (int/int): exit bye

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 18:30
Which of these options are the correct sequence of actions for content to be copied and pasted? select content, click the copy button, click the paste button, and move the insertion point to where the content needs to be inserted. click the copy button, select the content, move the insertion point to where the content needs to be inserted, and click the paste button. select the content, click the copy button, move the insertion point to where the content needs to be inserted, and click the paste button. select the content, move the insertion point to where the content needs to be inserted, click the copy button, and click the paste button.
Answers: 3
question
Computers and Technology, 23.06.2019 17:00
Companies that implement and apply an information system effectively can create
Answers: 1
question
Computers and Technology, 24.06.2019 08:00
Arah has entered data about football players from team a and team b in a worksheet. she enters names of players from team a with details about each player in different columns of the worksheet. similarly, she enters details of all the players from team b. which option will her view the data for team a and team b in two separate sections after printing? a. page break view b. freeze pane view c. split screen view d. full screen view e. zoom out view
Answers: 1
question
Computers and Technology, 24.06.2019 10:00
Which two technologies support the building of single-page applications?
Answers: 2
You know the right answer?
Warm up: simplify fraction (python 3) overview: we ask the user for the numerator and denominator...
Questions
question
English, 13.10.2020 15:01
question
Mathematics, 13.10.2020 15:01
question
Mathematics, 13.10.2020 15:01
question
Biology, 13.10.2020 15:01
Questions on the website: 13722367