Skip to main content
added 18 characters in body
Source Link
m0dem
  • 1k
  • 1
  • 8
  • 15
...
# thanks for the suggestion @RobertSeaman
price_final = price_final[::-1].replace('.', ',').replace(',', '.', 1)[::-1].translate(None, "\xa0€,")
price_end = int(float(price_final) * 100 * Wechselkurs)
...

https://docs.python.org/2/library/string.html#string.translate

...
# thanks for the suggestion @RobertSeaman
price_final = price_final[::-1].replace(',', '.', 1)[::-1].translate(None, "\xa0€,")
price_end = int(float(price_final) * 100 * Wechselkurs)
...

https://docs.python.org/2/library/string.html#string.translate

...
# thanks for the suggestion @RobertSeaman
price_final = price_final[::-1].replace('.', ',').replace(',', '.', 1)[::-1].translate(None, "\xa0€,")
price_end = int(float(price_final) * 100 * Wechselkurs)
...

https://docs.python.org/2/library/string.html#string.translate

added 85 characters in body
Source Link
m0dem
  • 1k
  • 1
  • 8
  • 15
...
# thanks for the suggestion @RobertSeaman
price_final = price_finalprice_final[::-1].replace("',"', "'."', 1)[::-1].translate(None, "\xa0€""\xa0€,")
price_end = int(float(price_final)*100*Wechselkurs * 100 * Wechselkurs)
...

https://docs.python.org/2/library/string.html#string.translate

price_final = price_final.replace(",", ".").translate(None, "\xa0€")
price_end = int(float(price_final)*100*Wechselkurs)

https://docs.python.org/2/library/string.html#string.translate

...
# thanks for the suggestion @RobertSeaman
price_final = price_final[::-1].replace(',', '.', 1)[::-1].translate(None, "\xa0€,")
price_end = int(float(price_final) * 100 * Wechselkurs)
...

https://docs.python.org/2/library/string.html#string.translate

added 66 characters in body
Source Link
m0dem
  • 1k
  • 1
  • 8
  • 15
price_final = price_final.replace(",", ".").translate(None, "\xa0€")
price_end = int(float(price_final)*100*Wechselkurs)

https://docs.python.org/2/library/string.html#string.translate

price_final = price_final.replace(",", ".").translate(None, "\xa0€")
price_end = int(float(price_final)*100*Wechselkurs)
price_final = price_final.replace(",", ".").translate(None, "\xa0€")
price_end = int(float(price_final)*100*Wechselkurs)

https://docs.python.org/2/library/string.html#string.translate

Source Link
m0dem
  • 1k
  • 1
  • 8
  • 15
Loading