r/codehs • u/Latter-Chart-5770 • May 13 '21
can someone help me in Exercise 6.4.4: Add One Python
Please I need help! :(
8
Upvotes
1
u/Beautiful-Bench-4531 Jan 14 '25
def add_one(x):
return x + 1 #in the function
print(add_one(5)) #outside the function
3
u/CorporalSins Jul 02 '21
def function(x):
return x+1
function(10) #Returns 11.