The
str
function does not combine or concatenate strings: it takes up to three parameters, the last two of which describe how to convert the value:
Python str() Function[
^]
I have no idea what you are trying to do with that code, and I'm not sure you do either! I'd strongly suggest you do two things:
1) Re-read your course notes carefully.
2) Read your full homework question again, and then re-read your notes from the last lesson.
Then think about what exactly you have been told to do - the question often includes pretty much complete instructions!