Line 11 calls the function "myFunction" which sets a copy of "x" to "-1". at line 8 the function ends and looses scope, so the copy of "x" that was set to "-1" is lost
Line 12 prints "x" which is still "9" because nothing has been changed.
Thank you, Andy, I thought that x= -1 on line 7 would carry over in myFunction on line 11 and since it comes after line 10 where x=9, I thought the output would be -1. If line 7 had "return x= -1 " then the output would be -1, correct?