So I have this code and call me an idiot haha, but I cant get this to print None then 7.
Code:
def function(parameter):
parameter = parameter + 1
parameter = 6
print(function(parameter))
print(parameter == 7)
I need to know how to alter the variable that has the same name as the parameter in the function.
Any help would be greatly appreciated, and if you don't understand the question I'd be glad to explain more.