"Or you can use the familiar #! trick #!/usr/local/bin/python print "Hello World"" Tuples are like lists, but size is fixed at time of creation. CanŐt replace members (said to be "immutable") Returning multiple values def divide(a,b): q = a/b r = a - q*b return q,r x,y = divide(42,5) # x = 8, y = 2 string.atof(s) # Convert to float string.atoi(s) # Convert to integer string.atol(s) # Convert to long string.count(s,pattern) # Count occurrences of pattern in s string.find(s,pattern) # Find pattern in s string.split(s, sep) # String a string string.join(strlist, sep) # Join a list of string string.replace(s,old,new) # Replace occurrences of old with new 1A socket is a file-like object. Allows data to be sent and received across the network like a file. But it also includes functions to accept and establish connections. Before two machines can establish a connection, both must create a socket object.