Lab1 ex4
You cannot submit for this problem because the homework's deadline is due.
Get a number represented as a string from user input using input('', 's')
(notice the second parameter 's'
) and convert the string to a number.
Hint: Use str2num()
. See its documentation and pay attention to the format requirements. Also read the note on the documentation page.
Sample Input1:
3.4
Sample Output1:
3.4000
Sample Input2:
vg101
Sample Output2:
Append is your input
to your input.
Sample Input1:
3.4
Sample Output1:
3.4000
3.4 is your input
Sample Input2:
vg101
Sample Output2:
vg101 is your input
Lab1 Sec2
- Status
- Finished
- Problems
- 5
- Open Since
- 2024-05-27 18:00
- DDL
- 2024-05-29 23:59
- Extension
- 0.0 hour(s)