title: Statement has no effect(Python)
body: <p>program to get a string from a given string where all occurrences of its first char have been changed to '$', except the first char itself.
  Sample String : 'restart'
  Expected Result : 'resta$t'</p>
  
  <p>here's my code</p>
  
  <pre><code>    def change(string):
          string_len = len(string)
          t = string[0]
          for each in range(1, string_len):
              if each is t:
                  each == '$'
              else:
                  continue
      return string
  
  print(change("restart"))
  
  output
  restart
  </code></pre>
  
  <p>i'using Pycharm. Line no 6 (each == '$')says this statement has no effect. i don't want to use replace method. just want to know what is the problem.</p>