Python Forum
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Measurement
#8
This is a string:
"drams =(1/8 *32 *8"
This evaluates an expression and assigns the result to a variable
drams = 1/8*32*8
I don't like the assignment because it does not specify what unit is used for user input. The teacher must have provided additional information because you have chosen to have the user enter their order using ounces. The instructions provide the conversions from ounces to drams and ounces to gils. Read the instructions carefully and you will see that your equation is wrong. Nowhere should you be using 32.
Reply


Messages In This Thread
Measurement - by thyva - Jan-27-2017, 12:56 AM
RE: Measurement - by micseydel - Jan-27-2017, 01:06 AM
RE: Measurement - by thyva - Jan-27-2017, 01:23 AM
RE: Measurement - by micseydel - Jan-27-2017, 01:26 AM
RE: Measurement - by thyva - Jan-27-2017, 02:58 AM
RE: Measurement - by wavic - Jan-27-2017, 06:17 AM
RE: Measurement - by sparkz_alot - Jan-27-2017, 03:38 PM
RE: Measurement - by deanhystad - Jun-09-2022, 02:48 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020