forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice > getYourWeightPriceInGold
prev  |  next  |  chance

Calculate your weight in gold. This method accepts your weight in pounds and returns the dollar amount in the price of gold. Currently, gold is 1800 dollars per ounce and there are 16 ounces in one pound.

getYourWeightPriceInGold(1) → 28800
getYourWeightPriceInGold(150) → 4320000
getYourWeightPriceInGold(90) → 2592000

...Save, Compile, Run (ctrl-enter)

def getYourWeightPriceInGold(pounds):

Editor font size %:
Shorter output

Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Python Help

Copyright Nick Parlante 2017 - privacy