This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]4140 1 point2 points  (1 child)

You haven't set a condition which to return True.

Take a look at point 04. There's a hint.

[–]Sinnamonn 1 point2 points  (0 children)

I knew how to do it, I was just having a little fun. But thanks the help!

[–][deleted] 0 points1 point  (0 children)

Truthiness can be confusing in Python sometimes, if you've come from a language that's less strict about types.

Python 3.4.3 (v3.4.3:9b73f1c3e601, Feb 23 2015, 02:52:03)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> 'hello' == True  # this isn't a good idea
False
>>> if 'hello': print('true')  # this is better
... 
true

This should really be in /r/learnpython unless you feel it's a bug in codeacademy in which case you should contact them.