Python 3 booleans


#1

On booleans it tells me to set some variables to diffrent values and it says File "python", line 2
my_int False
^
SyntaxError: invalid syntax i put my_int 7
my_float 1.23
my_bool True but it still says i am wrong plz help me

just a note i am 11


#2

You forgot to put the = sign


#3

thank you i was tired then


#4

What do you mean by = sign?


#5

He typed this...

my_int 7

He should have typed...

 my_int = 7

#6

I typed the same thing But still says that I'm wrong


#7

thanks @steve80 have been struggling like for 30 minute to get pass Boolean.


#8

meu comando é:

My int=7
My_float=1,23
My_bool=true

e mesmo assim dá erro..já tentei até mesmo declarar uma quarta linha como:
My_other_bool=false
Mas mesmo assim diz que meu codigo está errado.
Alguem consegue me ajudar?


#9

There are multiple things that would result in an error. First off, the "m" in my_int, my_float, and my_bool are left uncapitalized in the lesson. Second, you typed in my_float = 1,23. 1,23 is supposed to be 1.23. Little details like this are always caught in Python and would surely result in an error.


#10

i type in my_bool = true and I get a un defined for true


#11

nevermind I didn't capatilize the True


#12

its not working i type my_bool=true and it give me an error


#13

Uploading... What's wrong with my answer?


#14

#15

the image didn't upload, please go here and make a new topic, this topic is really old