Pens until Hawaii?

Matt is a shop owner who sells pens and paper. He has been working hard and wants to go on vacation. He needs to earn 362 dollars to afford a plane ticket to Hawaii. He earns 2 dollars for each pen he sells.

Matt wrote a function to find out how many pens he must sell before he can purchase the plane ticket. However, in order to make his code correct, he must replace the word TURQUOISE with an integer.

Which integer should he replace the word TURQUOISE with?

1
2
3
4
5
6
7
8
    # Matt's python code
    def how_many_pens():
        pens = 0
        m = 0
        while (m < 362):
            m = m + TURQUOISE
            pens = pens + 1
        return pens

×

Problem Loading...

Note Loading...

Set Loading...