def store_var(var_name: str, var):
    """
	Stores a variable

	var_name: name to store variable as
	var:	  variable to store
	"""
    with open('var_list.silas', 'r') as var_list:
        lines = var_list.readlines()
        var_list.close()
    with open('var_list.silas', 'w') as var_list:
        for line in lines:
            if not var_name in line.strip('\n'):
                var_list.write(line)
        var_list.close()
        del lines
    with open('var_list.silas', 'a+') as var_list:
        var_list.write(f'{var_name} : {var.var_repr()}\n')
        var_list.close()
