Hard
linspace
Read a, b and n. Make
np.linspace(a, b, n) and print the values with 2 decimals on one line, then their sum with 2 decimals.Input
Three numbers (n ≥ 2 integer).
Output
Two lines.
Sample 1
Input
0 1 5
Output
0.00 0.25 0.50 0.75 1.00 2.50
Sample 2
Input
1 2 2
Output
1.00 2.00 3.00
Output appears here