Python Version - 2.7.11
I am following Zed Shaw's Learn Python the Hard Way and am currently at Exercise 21
I am trying to modify the code so that the script prompts the user to enter the values (age, height etc) instead of hard coding them.
With everything else remaining the same, I modified this line:
age = add(float(raw_input('Enter 2 numbers')))
..and entered two numbers (5, 1)
which resulted in the following error:-
ValueError: invalid literal for float(): 5,2
I replaced float(raw_input())
with int(raw_input())
and that gave the following error
ValueError: invalid literal for int() with base 10: '5,1'
Could someone please advise me where I am going wrong?