+ 1

l have a question about boolean

l am trying to writing code but it didnt work and it wanted to write bool... İs it different? And if l make my_boolean=False. What does it do?

16th Aug 2016, 11:59 PM
Oğulcan Sur
Oğulcan Sur - avatar
5 ответов
+ 1
is it italian code?
17th Aug 2016, 11:03 PM
Oğulcan Sur
Oğulcan Sur - avatar
0
What the problem in your code? give example... When you write my_boolean = False, you put in the variable my_boolean the value False. if (my_boolean): print ("my boolean is true") else: print ("my boolean is false") because my_boolean have the value of False it will print to the output the second sentence
17th Aug 2016, 9:32 PM
‫Ido Tal
‫Ido Tal - avatar
0
1- my_boolean is the same with my_bool??
17th Aug 2016, 10:11 PM
Oğulcan Sur
Oğulcan Sur - avatar
0
yep, same as my_booly_booleano :)
17th Aug 2016, 11:01 PM
‫Ido Tal
‫Ido Tal - avatar
0
you can choose as variable almost all name you want
17th Aug 2016, 11:53 PM
‫Ido Tal
‫Ido Tal - avatar