#!/usr/bin/python
def split(x):
return [char for char in x]
def func(x):
a = []
a.append(split(x))
for i in a:
if a[i]== "\"":
print ("hw")
str = "string\""
print (str)
func(str)
Trying to implement a function which finds "
in a string and prints "hw"
when finds it. What could be the problem?