Simple error while inserting variable . Can't seem to figure it out ! meaning and word are of type str .
rest_command = "display notification \'%s\' with title \'%s\'", %(meaning[0],word[0])
os.system(osascript -e + rest_command)
Error:
File "word-scraper.py", line 20
rest_command = "display notification \'%s\' with title \'%s\'", %(meaning[0],word[0])
^
SyntaxError: invalid syntax