Hi Group,
I am blocked with error while i am writing program using find command.
Prg:
str = "geeksforgeeks is for geeks"
str2 = "geeks"
# using find() to find first occurrence of str2
# returns 8
print ("The first occurrence of str2 is at : ", end="")
print (str.find( str2, 4) ).
Error after compilation .
File "jdoodle.py", line 8
print ("The first occurrence of str2 is at : ", end="")
^
SyntaxError: invalid syntax
Command exited with non-zero status 1
I am blocked with error while i am writing program using find command.
Prg:
str = "geeksforgeeks is for geeks"
str2 = "geeks"
# using find() to find first occurrence of str2
# returns 8
print ("The first occurrence of str2 is at : ", end="")
print (str.find( str2, 4) ).
Error after compilation .
File "jdoodle.py", line 8
print ("The first occurrence of str2 is at : ", end="")
^
SyntaxError: invalid syntax
Command exited with non-zero status 1