You have a space between print and the opening parenthesis on lines 37-39, which is only correct in Python 2. Similar problem on lines 38-39 with the find function. Also, in the third string on line 35, there is a space between the string's closing quotes and the opening square bracket.
EDIT: Apparently you can have spaces between a function name and its parantheses. Did not know that, but it is likely not a good practice because it is against style guides that make code consistent.
This is incorrect and definitely not the reason why the first line in block 34 doesn't work. As already pointed out previously, it is because the print function was overwritten with a float in the previous block.
-5
u/Its_Stev03 Sep 07 '21 edited Sep 08 '21
You have a space between print and the opening parenthesis on lines 37-39, which is only correct in Python 2. Similar problem on lines 38-39 with the find function. Also, in the third string on line 35, there is a space between the string's closing quotes and the opening square bracket.
EDIT: Apparently you can have spaces between a function name and its parantheses. Did not know that, but it is likely not a good practice because it is against style guides that make code consistent.