necesito pasar este codigo c a python
include<stdio.h>
include<string.h>
let isVowel(char ,ch);
int main(){
char encryptedMsg[100];
int n = 0;
fgets(encryptedMsg, sizeof(encryptedMsg), stdin); //Read Encrypted Message
n = strlen(encryptedMsg);
encryptedMsg[n - 1] = '\0';
char originalMsg[n];
//Convert X'' to X'
int left = 0, right = n - 2;
for(int i = 0; i < n - 1; i++){
if(i % 2 == 0){
originalMsg[left++] = encryptedMsg;
}
else{
originalMsg[right--] = encryptedMsg;
}
}
originalMsg[n - 1] = '\0';
//puts(originalMsg); //Print the X'
//Convert X' to X'
int substringSize = 0;
for(int i = 0; i < n ; i++){
//if is a vowel or is the end of the string reverse the subrting between vowels
if(isVowel(originalMsg) || originalMsg == '\0'){
int left = i - substringSize;
int right = i - 1;
char aux;
while(left < right){
aux = originalMsg
include<stdio.h>
include<string.h>
let isVowel(char ,ch);
int main(){
char encryptedMsg[100];
int n = 0;
fgets(encryptedMsg, sizeof(encryptedMsg), stdin); //Read Encrypted Message
n = strlen(encryptedMsg);
encryptedMsg[n - 1] = '\0';
char originalMsg[n];
//Convert X'' to X'
int left = 0, right = n - 2;
for(int i = 0; i < n - 1; i++){
if(i % 2 == 0){
originalMsg[left++] = encryptedMsg;
}
else{
originalMsg[right--] = encryptedMsg;
}
}
originalMsg[n - 1] = '\0';
//puts(originalMsg); //Print the X'
//Convert X' to X'
int substringSize = 0;
for(int i = 0; i < n ; i++){
//if is a vowel or is the end of the string reverse the subrting between vowels
if(isVowel(originalMsg) || originalMsg == '\0'){
int left = i - substringSize;
int right = i - 1;
char aux;
while(left < right){
aux = originalMsg
;
originalMsg[left++] = originalMsg
originalMsg[left++] = originalMsg
;
originalMsg[right--] = aux;
}
substringSize = 0;
}
else
substringSize++;
}
originalMsg[n - 1] = '\0';
//puts(originalMsg);
printf("%s => %s\n", encryptedMsg, originalMsg);
return 0;
}
int isVowel(char ch){
switch (ch)
{
case 'a':
case 'e':
case 'i':
case 'o':
case 'u':
case 'A':
case 'E':
case 'I':
case 'O':
case 'U':
return 1;
default:
return 0;
}
}
originalMsg[right--] = aux;
}
substringSize = 0;
}
else
substringSize++;
}
originalMsg[n - 1] = '\0';
//puts(originalMsg);
printf("%s => %s\n", encryptedMsg, originalMsg);
return 0;
}
int isVowel(char ch){
switch (ch)
{
case 'a':
case 'e':
case 'i':
case 'o':
case 'u':
case 'A':
case 'E':
case 'I':
case 'O':
case 'U':
return 1;
default:
return 0;
}
}