ScholarMatic | 24/7 Homework Help

ScholarMatic Will Help You Write Your Essays and Term Papers

Answered » You can buy a ready-made answer or pick a professional tutor to order an original one.

This is a program I am doing;#Convert US measures to metric system measures#Get an

ScholarMatic: Explanation & Answer

Your ready answer from a verified tutor is just a click away for as little as $14.99


  

Click Order Now to get 100% Original Answer Customized to your instructions!

This is a program I am doing;

#Convert US measures to metric system measures

#Get an

input from user (William) to convert miles to kilometers

#Store the input value in a variable

Miles=float(print(‘William, please tell me how many miles you want converted to kilometers: ‘))

#Perform the conversion in arithmetic expression

#Store the result in a variable

Kilometers=Miles*1.6

Print(“William”,Miles,”miles is equal to”,Kilometers,”kilometers. Isn’t that amazing!”)

when I run this, this is what I get:

Python 3.7.4 (tags/v3.7.4:e09359112e, Jul 8 2019, 19:29:22) [MSC v.1916 32 bit (Intel)] on win32

Type “help”, “copyright”, “credits” or “license()” for more information.

>>>

 RESTART: C:/Users/Gsuar/AppData/Local/Programs/Python/Python37-32/Gretchen_ Suarez_Lab2.py

William, please tell me how many miles you want converted to kilometers:

Traceback (most recent call last):

 File “C:/Users/Gsuar/AppData/Local/Programs/Python/Python37-32/Gretchen_ Suarez_Lab2.py”, line 4, in

   Miles=float(print(‘William, please tell me how many miles you want converted to kilometers: ‘))

TypeError: float() argument must be a string or a number, not ‘NoneType’

>>>

Please, I need help to fix this.

ScholarMatic: Explanation & Answer

Your ready answer from a verified tutor is just a click away for as little as $14.99


  

Click Order Now to get 100% Original Answer Customized to your instructions!

HOME TO CERTIFIED WRITERS

Why Place An Order With Us?

  • Certified Editors
  • 24/7 Customer Support
  • Profesional Research
  • Easy to Use System Interface
  • Student Friendly Pricing

Have a similar question?

PLAGIRAISM FREE PAPERS

All papers we provide are well-researched, properly formatted and cited.

TOP QUALITY

All papers we provide are well-researched, properly formatted and cited.

HIGHLY SECURED

All papers we provide are well-researched, properly formatted and cited.

ScholarMatic: Get Started

Assignment Writing Service

Feel safe and secure when placing an order on our portal!
Fruitful cooperation begins with solid guarantees, and we are professional enough to promise perfect results. Let’s get it started!