String operation aspect

Screen Link:
https://app.dataquest.io/m/200/variables-and-data-types/10/string-operations

My Code:

1
facebook = "Facebook's rating is"
2
fb_rating = 3.5
3
​
4
fb_rating_str = str(fb_rating)
5
fb = facebook + ' ' + fb_rating_str
6
​
7
print(fb)
Replace this line with your code

What I expected to happen:I attempted to do it with my code but still getting the same error

What actually happened: I have execute the instructions given but the program keeps bringing syntax error

Replace this line with the output/error
```Get Help
Get a hint
See the answer
Community discussion
script.py
1
 
2
facebook = "Facebook's rating is"
3
fb_rating = 3.5
4
​
5
fb_rating_str = str(fb_rating)
6
fb = facebook + ' ' + fb_rating_str
7
​
8
print(fb)
Output
  File "<ipython-input-1-9c631fbd8b07>", line 6
    fb = facebook + ' ' + fb_rating_str
                       ^
SyntaxError: invalid character in identifier


<!--Enter other details below: -->

hey @bauzy2357

Welcome to DQ Community!

I tried both your codes (had to remove the numbers - 1, 2, 3 etc.) and they work fine. If the error persists can you please follow this guide and repost your formatted code?

Introducing guidelines for all technical questions in our Community