-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
  • 115,751
  • 26
  • 228
  • 437

1 Answers1

1

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

Jonathan Clede
  • 126
  • 1
  • 5