Try to input these to Python app and submit the result: from fractions import Fraction print(Fraction(128, -26)) print(Fraction(256)) print(Fraction()) print(Fraction('2/5')) print(Fraction(' -5/7')) print(Fraction('2.675438 ')) print(Fraction('-32.75')) print(Fraction('5e-3')) print(Fraction(7.85)) print(Fraction(1.1)) print(Fraction(2476979795053773, 2251799813685248)) from decimal import Decimal print(Fraction(Decimal('1.1'))) >>>

Systems Architecture
7th Edition
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Stephen D. Burd
Chapter7: Input/output Technology
Section: Chapter Questions
Problem 25VE
icon
Related questions
Topic Video
Question

python

ΡΥTHON
Try to input these to Python app and submit the result:
from fractions import Fraction
print(Fraction(128, -26))
print(Fraction(256))
print(Fraction())
print(Fraction('2/5'))
print(Fraction(' -5/7'))
print(Fraction('2.675438 '))
print(Fraction('-32.75'))
print(Fraction('5e-3'))
print (Fraction(7.85))
print(Fraction(1.1))
print(Fraction(2476979795053773, 2251799813685248))
from decimal import Decimal
print(Fraction(Decimal('1.1')))
>>>
Transcribed Image Text:ΡΥTHON Try to input these to Python app and submit the result: from fractions import Fraction print(Fraction(128, -26)) print(Fraction(256)) print(Fraction()) print(Fraction('2/5')) print(Fraction(' -5/7')) print(Fraction('2.675438 ')) print(Fraction('-32.75')) print(Fraction('5e-3')) print (Fraction(7.85)) print(Fraction(1.1)) print(Fraction(2476979795053773, 2251799813685248)) from decimal import Decimal print(Fraction(Decimal('1.1'))) >>>
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Instruction Format
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr