Hollow Diamond in Rectangle

Program that displays Hollow diamond in rectangle.

Solution in C    PYTHON
#include<stdio.h>
int main() {
  int n, i, j;
  scanf("%d",&n);
  for(i=1;i<=n;i++){
    for(j=1;j<=n-i+1;j++)
      printf("*");
    printf("%*c",2*i-1,' ');
    for(j=1;j<=n-i+1;j++)
      printf("*");
    printf("\n");
  }
  for(i=n;i>=1;i--){
    for(j=1;j<=n-i+1;j++)
      printf("*");
    printf("%*c",2*i-1,' ');
    for(j=1;j<=n-i+1;j++)
      printf("*");
    printf("\n");
  }
  return 0;
}

Input
7
Output
******* *******
******   ******
*****     *****
****       ****
***         ***
**           **
*             *
*             *
**           **
***         ***
****       ****
*****     *****
******   ******
******* *******