What's the difference between Variables and Booleans?(python)


#1

from what I understood: Variables can be anything that starts with a word then the equal sine and another word.
example:
fort = what

and

booleans are a word with equal sine and then true of false.
example:
fort = true
fort = false


#2

what should be a string then:

fort = "what"

otherwise, what would be another variable

yea, booleans can only have two values: True or False (uppercase first letter), you can store a boolean value in a variable


#3

To elaborate, Booleans can have only two values, True and False. Where as a variable could have any number of values.


#4

alright,thank you :slight_smile: