Python Unboundlocalerror Local Variable ‘num Referenced Before Assignment Programmerah

Python Unboundlocalerror Local Variable ‘num Referenced Before Assignment Programmerah