Python
a = '32XX + 2X3X8 - 1XXX'
a = a.replace('X', '0')
a = a.replace('-' or '+', '1')
print(a)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Python
a = '32XX + 2X3X8 - 1XXX'
a = a.replace('X', '0')
a = a.replace('-' or '+', '1')
print(a)