I am begineer at coding in python and i am trying to create a simple calculator.I want the code to repeat it self an quit when i type in "q".But the output gave an error ""
Here is the code
while True:
nums=float(input('Enter numbers for calculations'))
if str(nums) == 'q':
break
operation.append(nums)
Here is the error it gave:
* nums=float(input('Enter numbers for calculations'))
ValueError: could not convert string to float: 'q'*