Python Notes

Gotta learn some fucking Python for the OSCP.

Cool, eh?

Triple quotes equals multi lines.

Math

print(50 * 50)

print(50 % 6) # modulo (leftover)

print (50 / 6) # 8.333

print( 50 // 6) # 8 - No leftovers

print(variable.upper) #uppercase

Functions

Indentation very important

Boolean Expressions

print("Boolean Expressions")
bool1 = True
bool2 = 3 * 3 == 9
bool3 = False
bool4 = 3 * 3 != 9

print(bool1,bool2,bool3,bool4)
print(type(bool1))