I am trying to convert string into integar, like this:
money = "$163,852.06"
original_amount = money[1:]
print(int(original_amount))
Here I have to slice 'money' variable, so that I can get exact numbers only.
for which I am getting this error:
Traceback (most recent call last):
File "<string>", line 3, in <module>
ValueError: invalid literal for int() with base 10: '163,852.06'
Can someone help me on this?