-3

I am using python 3.5.1. I have a variable called name and the value assigned is sarah. I get a syntax error when I type print name.find('s'). What am I doing wrong?

jonrsharpe
  • 107,083
  • 22
  • 201
  • 376

1 Answers1

1

In Python 3, print() is a function and requires parentheses: print(name.find('s'))

Jonathan Clede
  • 126
  • 1
  • 5