Conditionals

    C++                                         Python

    Logical Operators:

    <    >    <=    >=    !=    ==              <    >    <=    >=    !=    ==
    !    &&    ||                               not    and    or


    if (sum > 0) counter ++;                    if sum > 0:
                                                    counter += 1


    if (x < y) {                                if x < y:
        z = x;                                      z = x
    } else {                                    else:
        z = y;                                      z = y
        y = x;                                      y = x
    }


    #include <cmath>                            import math
    if (x <= z) {                               if x <= z:
        y = x;                                      y = x
        x = x*x;                                    x = x*x
    } else if (y != 0) {                        elif y != 0:
        x = sqrt(y);                                x = math.sqrt(y)
        counter++;                                  counter += 1
    }


    if (x == z) {                               if x == z:
        y = x;                                      y = x
        x = x*x;                                    x = x*x
    } else if (i < 0 && j > 0) {                elif i < 0 and j > 0:
        x = exp(-y);                                x = math.exp(-y)
        counter++;                                  counter += 1
    } else {                                    else:
        sum += x;                                   sum += x
    }