print ('Hello World')
x = 1
wood = 0
coal = 0
def found():
x=0
x=x+1
global wood
wood+=15
global coal
coal+=15
found()
The variables wood & coal look ambigious to python.
Wood & coal in func "found" are by default treated as local varibles.
use global keyword to fix.