I couldn't port this , can someone tell me how this code would be if it was implemented in python? Any help would be appreciated.. int main() { int teste=1, n; while (scanf("%d", &n) == 1 && n != -1) printf("Teste %d\n%d\n\n", teste++, ((1 << n)+1)*((1 << n)+1)); return 0; }