Question: ```
print("Lets play a game")
print("You have to operte on some numbers")

print("Are you ready? , type yes or no ")

input = input().lower()

if input == "yes":
    print("Ok now type your name and age (comma separated)")
    name = input()
    age = int(input())
    if "\"" in name or ">" in name :
        print("Use only alphanumeric characters")
    else:
        pass
    if age <= 10 :
        print("You cant play this game")

```

I keep on getting this error `'str' object is not callable` in line 10.

Answer: 
Why not try resolving the merge as:

```
Map<String, Map<Food, List<String>>> groceryBasket =
        Stream.concat(fruitBasket.entrySet().stream(), veggieBasket.entrySet().stream())
                .collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue, (a, b) -> {
                    Map<Food, List<String>> innerMap = new HashMap<>(a);
                    innerMap.putAll(b);
                    return innerMap;
                }));

```

or if the inner map is mutable then slightly convenient as

```
Map<String, Map<Food, List<String>>> groceryBasket = Stream.concat(fruitBasket.entrySet().stream(),
        veggieBasket.entrySet().stream())
        .collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue, (a, b) -> {
            a.putAll(b);
            return a;
        }));

```
You have to create modifiable List for merging duplicate keys,

```
Stream.concat(fruitBasket.entrySet().stream(), veggieBasket.entrySet().stream())
                .collect(Collectors.toMap(Map.Entry::getKey, e -> listOf(e.getValue()),
                        (left, right) -> {
                            left.addAll(right);
                            return left;
                        }));

```

To create modifiable List,

```
public static List<Map<Food, List<String>>> listOf(Map<Food, List<String>> a) {
    final ArrayList<Map<Food, List<String>>> list = new ArrayList<>();
    list.add(a);
    return list;
}

```

Output:

> 
> {basket3=[{FRUITS=[banana, orange]}, {VEGGIES=[Potato, Tomato]}],
> 
> 
> basket2=[{FRUITS=[orange, kiwi]}, {VEGGIES=[Onion, Potato]}],
> 
> 
> basket1=[{FRUITS=[apple, banana]}, {VEGGIES=[Tomato, Onion]}]}
> 
> 
>