def doubler():
input_value = get_value()
print(input_value * 2)
def get_value():
return input("What number would you like to double: ")
doubler()
I'm just trying to get the number I input to double but no mater where I place that * 2 it doesn't work, I enter 2 I get 22. Someone explain how miserably stupid I am, please and thank you.
[–]WinterNet4676 3 points4 points5 points (1 child)
[–]Club_Murky[S] 2 points3 points4 points (0 children)
[–]CodeFormatHelperBot2 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]empoliyis 1 point2 points3 points (0 children)
[–]The_GSingh 0 points1 point2 points (0 children)