Question: python help Putting it all together (Step 5) In this step we wilt be combining everything we've learned so far 1. First you will need
Putting it all together (Step 5) In this step we wilt be combining everything we've learned so far 1. First you will need to define a function called Go fo step 0.5 to leam about detining a function if you dan y fermember hoiv to 2. Wathin that function, create an int variable called cost and assign if to equal 6 . 3. Then ask the user for ingut asking "What flavor would you ike? " and stove their answer in a varable called favor. Hint: If you dont remember user input, look back at lab 00 . 4. Next return a statement stating "The fiavor wit cost cost dollars "replacing navor and cost with yout two variables you ciealid Hint: Follow the same format as how you coded your print statement in the 00 Hint: Use casting to cast cost fram an int to a stung of else it wontretuni progenty if enrioc will ocear) In the aybooks input box, gut vaniita to lest your code. Dont forget tu calt the finction to ste the outptti fraxe nure te pat a above the celun in runt? If you do this successfinly the outrut stiouid look lipe
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
