Remove Special Characters

Write a program to remove special characters except alphabets from string.

C    PYTHON

#include<stdio.h>
int main() {
  char str[100];
  int i, j;
  gets(str);
  for(i=0;str[i]!='\0';i++){
    if((str[i]<'a' || str[i]>'z') && (str[i]<'A' || str[i]>'Z')){
      for(j=i;str[j]!='\0';j++)
        str[j] = str[j+1];
      i--;
    }
  }
  puts(str);
  return 0;
}

Training programs @ 4 placements
Trainingprogramsplacements