Take Multiple Input In Python Using Global Variables In Functions