fork download
  1. #!/usr/bin/python
  2. price = "36,99"
  3. print("Com Desconto:",float(price))
Runtime error #stdin #stdout #stderr 0.01s 118656KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "prog.py", line 3, in <module>
    print("Com Desconto:",float(price))
ValueError: could not convert string to float: '36,99'