Booleans


#1

i have done it like:
my_int = 7
my_float = 1.23
my_bool = true

but it still marks it as wrong?


#2

Hi here

my_bool = true

Change true to True


#3

Yeah,

Bool's are case sensitive. You have to use True and False, instead of true and false!

So this is what it should be;

my_int = 7
my_float = 1.23
my_bool = True

Happy coding :+1:


#4

Yes, as @matsn0w said, when dealing with booleans make sure you capitalize True, False, and other elements codecademy tells you to. Leaving "True" as "true" will result in an error.

Happy coding!