3

What Are Booleans In Python Please Explain With Ease And In Detail ?

Comments
  • 4
    boolean are simply yes or no expressed in True and False. What's hard about that? I mean, what are you asking specifically
  • 3
    For example in Python IDLE or Terminal, you can type :

    >>> my_age=19
    >>> my_age is 19
    True
    >>> my_age is 18
    False
  • 8
    Are you serious?
  • 2
    Or maybe
    >>> has_driving_licence = True
    >>> if (has_driving_licence is True):
    . . . print("can drive")
    . . . else:
    . . . print("can't drive")
  • 2
    @Zlytherin exactly, especially he asked about it in *Python*. Like huh?!
  • 5
    @wowotek are you serious too?

    if(has_driving_licence is True)

    👆👆!!!!

    As far as I can remember that you was once a teacher in a programming class. But look here!
  • 2
    @Zlytherin it explain with *Ease*

    I know you can do it straight
    If(has_driving_licence)
    ....

    I hate to explain it that way tho
  • 3
    @Zlytherin i am actually teaching my student this way at first, after first practice i tell them the more efficient way. It depends on the audience tho.

    I am impressed you remember me as a teacher 😂
  • 1
    @wowotek by the way I don't think that any developer can forget that "sudo hug me" thing...
  • 0
    @Zlytherin that's not me ! 😂😂 omg i am blushed
  • 0
    Same as booleans in any other language
  • 0
    Booleans are (True and False) variables...
    Simple as that!
Your Job Suck?
Get a Better Job
Add Comment