-->
当前位置:首页 > 题库

PROGRAMMING:JMU Python input output calculate the number in the string

Luz5年前 (2021-05-10)题库321
Each number in the string is extracted, and then the number of all numbers is counted and summed.
###Input format:
A line of string in which numbers are separated by one or more spaces.
###Output format:
Line 1: the number of outputs.
Line 2: the result of the sum, with 3 decimal places.
###Input example:
```in
2.1234 2.1 3 4 5 6
```
###Output example:
```out
six
twenty-two point two two three
```







answer:If there is no answer, please comment