Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
wowotek58276yboolean are simply yes or no expressed in True and False. What's hard about that? I mean, what are you asking specifically
-
wowotek58276yFor example in Python IDLE or Terminal, you can type :
>>> my_age=19
>>> my_age is 19
True
>>> my_age is 18
False -
wowotek58276yOr maybe
>>> has_driving_licence = True
>>> if (has_driving_licence is True):
. . . print("can drive")
. . . else:
. . . print("can't drive") -
@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! -
wowotek58276y@Zlytherin it explain with *Ease*
I know you can do it straight
If(has_driving_licence)
....
I hate to explain it that way tho -
wowotek58276y@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 😂 -
@wowotek by the way I don't think that any developer can forget that "sudo hug me" thing...
What Are Booleans In Python Please Explain With Ease And In Detail ?
question