Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Data Science by (18.4k points)

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}")

1 Answer

0 votes
by (36.8k points)
edited by

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 

Related questions

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...