-1

Please, can you help me? I need to write a condition that if the URL contains the ending pl (Polish language), then the following steps should be performed with replacement and FLOAT, if not, then INT should be used. But I don't know how to write that first line.

I tried if web_language == "PLN", but it doesn´t work.

if URL_SRL ==...
   prizeTourAllString = prizeTourAllString.replace(",", ".")
   prizeTourAllString = 'PLN'.join(prizeTourAllString.split())
   prizeTourAllString = int(float(prizeTourAllString))
else:
   prizeTourAllString = int(prizeTourAllString)`
InSync
  • 4,851
  • 4
  • 8
  • 30

0 Answers0