"monty" < "python"

2013-03-20 Thread franzferdinand
>>> "Monty" < "Python"
True
>>> "Z" < "a"
True
>>> "Monty" < "Montague"

False
What's the rule about that? Is it the number of letters or what?
thanks
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: "monty" < "python"

2013-03-20 Thread franzferdinand
Ok, thanks everybody!
-- 
http://mail.python.org/mailman/listinfo/python-list


join()

2013-03-20 Thread franzferdinand
I'm doing this "Write code that removes whitespace at the beginning
and end of a string, and normalizes whitespace between words to be a
single space character"

I can do it using split()

>>> raw = "  the weather is sunny  today   "
>>> raw.split()
['the', 'weather', 'is', 'sunny', 'today']

But how do I do it using join() ?? Thanks
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: join()

2013-03-20 Thread franzferdinand
Yeah it works. Thank you everybody!
-- 
http://mail.python.org/mailman/listinfo/python-list