How to use local variable again after using nonlocal / global variable in a function

if i have to use local variable again inside a nested function after declaring nonlocal variable or global variable (using nonlocal and global keywords).