On 01/11/2019 17:07, MRAB wrote:
On 2019-11-01 12:36, Rhodri James wrote:
On 31/10/2019 20:14, MRAB wrote:
On 2019-10-31 18:46, ferzan saglam wrote:
The code below which I have written should print the result of 43.6
with the given values I have included at the end of this question,
but for s
On 2019-11-01 12:36, Rhodri James wrote:
On 31/10/2019 20:14, MRAB wrote:
On 2019-10-31 18:46, ferzan saglam wrote:
The code below which I have written should print the result of 43.6
with the given values I have included at the end of this question, but
for some odd reason I get the result of
On 31/10/2019 20:14, MRAB wrote:
On 2019-10-31 18:46, ferzan saglam wrote:
The code below which I have written should print the result of 43.6
with the given values I have included at the end of this question, but
for some odd reason I get the result of 44.44.
bill = (input("Enter the total
On 2019-10-31 18:46, ferzan saglam wrote:
The code below which I have written should print the result of 43.6 with the
given values I have included at the end of this question, but for some odd
reason I get the result of 44.44.
bill = (input("Enter the total cost of the meal: \n"))
On 10/31/19 11:46 AM, ferzan...@gmail.com wrote:
The code below which I have written should print the result of 43.6 with the
given values I have included at the end of this question, but for some odd
reason I get the result of 44.44.
bill = (input("Enter the total cost of the meal: \n"))
How are you getting any value at all? You are trying to do math on string
values just like in your infinite loop question.
This should raise
TypeError: unsupported operand type(s) for /: 'str' and 'str'
Also, tips are usually given as percentages. Here with a tip value of 9 you're
saying that th