curriculum/challenges/english/blocks/workshop-bill-splitter/6976d8a7cd2a1a5ffcd7f9c4.md
Each course has a cost. You need to store these amounts in variables to use them later. Since these amounts include cents, you will use the float type, which is used to represent decimal numbers. Here's an example of a variable with a float value:
change = 2.35
Create four variables: appetizers set to 37.89, main_courses set to 57.34, desserts set to 39.39, and drinks set to 64.21.
You should define a variable named appetizers and assign it the value 37.89.
({
test: () => assert(runPython(`
_Node(_code).find_variable('appetizers').is_equivalent('appetizers = 37.89')
`))
})
You should define a variable named main_courses and assign it the value 57.34.
({
test: () => assert(runPython(`
_Node(_code).find_variable('main_courses').is_equivalent('main_courses = 57.34')
`))
})
You should define a variable named desserts and assign it the value 39.39.
({
test: () => assert(runPython(`
_Node(_code).find_variable('desserts').is_equivalent('desserts = 39.39')
`))
})
You should define a variable named drinks and assign it the value 64.21.
({
test: () => assert(runPython(`
_Node(_code).find_variable('drinks').is_equivalent('drinks = 64.21')
`))
})
running_total = 0
num_of_friends = 4
--fcc-editable-region--
--fcc-editable-region--