Q:

Write a Python program to swap comma and dot in a string

0

Write a Python program to swap comma and dot in a string.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

amount = "32.054,23"
maketrans = amount.maketrans
amount = amount.translate(maketrans(',.', '.,'))
print(amount)

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now