You can build dynamic functions with a nested function by passing different parameters into it. This technique of using the values of outside parameters within a dynamic function is called closures. For example,
In Python, a variable declared outside of the function or in global scope is known as global variable. This means, global variable can be accessed (read) inside or outside of the function.
Equations are given in the format A / B = k, where A and B are variables represented as strings, and k is a real number (floating point number). Given some queries, return the answers. If the answer does not exist, return -1.0.