-1
a = 'guindo , barwos, zasport'
a
guindo , barwos, zasport

But when I write

print(f'find is {a.find('a')}')

I get error

SyntaxError: f-string: unmatched '('

Why? Can someone please write right code that will be work. Thanks.

1
  • Starting with Python 3.12, your code will work as-is. Commented Mar 15, 2024 at 10:43

1 Answer 1

0

Try this:

print(f"find is {a.find('a')}")
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.