Skip to Content
Menu
This question has been flagged
2 Replies
2953 Rodiniai

Hi everyone, I have a problem with code.

In this part:

qty_position = scan_barcode.find('-')

I need replace symbol - with symbol

qty_position = scan_barcode.find(''')

the problem is that with this new symbol, code after change like if is it:

""" Text """

How I can do?

Thanks very much

Portretas
Atmesti
Autorius Best Answer

Thanks Hassan, it work!

Can I ask an other question, If I need:

qty_position = scan_barcode.find("'" or "*")

it's possible to do this? What's the correct code?

Thanks

Portretas
Atmesti

qty_position = scan_barcode.replace("'", "").replace("*","")

Can you make my answer as solved?

Autorius

Hi Hassan, thanks for you help! I would like make your answer as solved, but I can not because forum need 5 Karma for make it, and I have not its. I don't know how I can do

Best Answer
qty_position = scan_barcode.replace("-", "'")
Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
2
rugs. 24
1527
2
rugp. 25
2698
1
liep. 25
1069
1
rugp. 25
1151
0
geg. 25
1506