formatter = " {} {} {} {}" print(formatter.format(1, 2, 3, 4)) print(formatter.format("one", "two", "three", "four")) print(formatter.format(True, False, False, True)) print(formatter.format(formatter, formatter, formatter, formatter)) print(formatter.format( "I will", "try my", "own text", "here")) print({}.format('but only because you told me to'))I'm really new to this as you may very well understand.. Last line:
print({}.format('but only because you told me to'))
gives me the following error message:
Error:Traceback (most recent call last):
File "exercise8.py", line 12, in <module>
print({}.format('but only because you told me to'))
AttributeError: 'dict' object has no attribute 'format'
From what I understand my {} aren't working :/