Suppose I have the following dictionary.
params = {'a': 'aaa', 'b': 'bbb', 'c': 'ccc', 'd': 'ddd-hoge'}
When printing using the following script,
>>> print("1: {a} 2: {b} 3: {c} 4: {d}.split('-')[0]".format(**params))
the output will be
"1: aaa 2: bbb 3: ccc 4: ddd-hoge.split('-')[0]"
How should I modify the script to get the same output as the following?
"1:aaa 2:bbb 3:ccc 4:ddd"
[0]?AttributeError: 'str' object has no attribute 'split('-')'is thrown