global keyword in python
Try moving this line
myvalue=10
before the definition of WhatIs function.
myvalue=10
def whatIs ():
global myvalue
myvalue +=10
print("myvalue: {}".format(myvalue))
whatIs()
print("myvalue: {}".format(myvalue))