i have two inputs that i would like to use within another function, is it possible to make them global somehow?
here are the two inputs that i would like to use
def UserInput():
while True:
if ChooseMove in self.pieces():
KingRow = int(input("Choose Row: "))
KingColumn = int(input("Choose Column: "))
here is where i would like to use both variables of the inputs
def KingMoves(self, rows, columns):
FinalMove = []
FinalMove.append(((KingRow - 1),(KingColumn)))
FinalMove.append(((KingRow + 1),(KingColumn)))
FinalMove.append(((KingRow),(KingColumn + 1)))
return FinalMove