osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CodeAcademy Python Tip Calculator


Cai Gengyang wrote:
> So, I?m on section (3. The Tip) ?
>
> Instructions
>
> 1.
> Set the variable tip to decimal value of 15% on line 5.
>
> This was my input:
> You?re almost there! Assign the tip variable on line 5.
> meal = 44.50
> tax = 6.75 / 100
> tip = 15.0
>
> But, when I tried to run the program, I don?t get any output at all. Nada, nothing zilch. Nothing happens, how come ?

Not a big enough tip?  You must be running the program as a script if no 
output is being printed to the screen.