LearnPy Hub
← Regular Expressions problems
Medium

Add Up the Prices

A line mentions prices written like Tk 120 or Tk 99.50. Find them with a group and print their total with 2 decimals (0.00 if none).

Input

One line.

Output

One number.

Sample 1

Input
Tea Tk 20, cake Tk 80.50
Output
100.50

Sample 2

Input
nothing priced
Output
0.00
solution.py
Output appears here
Add Up the Prices · Python practice problem · LearnPy Hub