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?
Asked
Active
Viewed 35 times
-3
jonrsharpe
- 107,083
- 22
- 201
- 376
1 Answers
1
In Python 3, print() is a function and requires parentheses:
print(name.find('s'))
Jonathan Clede
- 126
- 1
- 5