Python: Functions
Posted: Tue Apr 07, 2026 6:15 pm
Code: Select all
def add_number_to_1():
the_added_number_to_1 = float(input("What number do you want to add to 1?:"))
return 1 + the_added_number
result = add_number_to_1()
print(f"Your chosen number added to 1 is {result}.")