Page 1 of 1

Python: Functions

Posted: Tue Apr 07, 2026 6:15 pm
by Jason

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}.")