Back
I am trying to learn how to use the Tweepy. I keep getting error as shown below
'SyntaxError: invalid syntax'
My Code is:
for tweet in api.search(q = 'python', lang="en", rpp=10): print(f"{tweet.user.name}:{tweet.text}")
for tweet in api.search(q = 'python', lang="en", rpp=10):
print(f"{tweet.user.name}:{tweet.text}")
I think you are using the python version that does not support the f-strings possibly < 3.6
Do check out Data Science with Python Course
31k questions
32.8k answers
501 comments
693 users