+ 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?
5 Respuestas
+ 1
is it italian code?
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
0
1- my_boolean is the same with my_bool??
0
yep, same as my_booly_booleano :)
0
you can choose as variable almost all name you want