Mar-21-2017, 01:38 AM
(This post was last modified: Mar-21-2017, 01:39 AM by ichabod801.)
Please use python tags (https://python-forum.io/misc.php?action=help&hid=25). I added them for you this time.
The problem is that you need parens after lower, like so:
The problem is that you need parens after lower, like so:
how_are = raw_input('How are you? ').lower()That's how you call a function or method to get the value it produces. The way you have it, how_are ends up being the lower method itself. Note this oddity:
>>> x = 'SPAM'.lower >>> x() 'spam'After the first line, x is the method itself, and displays as nothing. We can then call x, by using parentheses, to get the result we were looking for. But do it the first way I showed you. The second way is just silly.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures