Sujet : Re: Why Python When There Is Perl?
De : bowman (at) *nospam* montana.com (rbowman)
Groupes : comp.os.linux.advocacyDate : 24. Mar 2024, 07:42:25
Autres entêtes
Message-ID : <l69sq1FtmmgU1@mid.individual.net>
References : 1 2 3 4 5 6 7 8 9 10 11 12
User-Agent : Pan/0.149 (Bellevue; 4c157ba)
On Sat, 23 Mar 2024 20:38:53 -0500, Physfitfreak wrote:
Would be nice to find when and where the use of "IMP" appeared first,
and by whom. It must've been a programming language book, and not a math
book.
https://en.wikipedia.org/wiki/Propositional_calculusThe concept is certainly from the math world. Where IMP comes from and how
it found its was to Basic I have no idea. How is it used in practice/
I used Python since there is a well known True and False.
truth.py
p = True
q = True
print(f"{p <= q}")
p = True
q = False
print(f"{p <= q}")
p = False
q = True
print(f"{p <= q}")
p = False
q = False
print(f"{p <= q}")
python truth.py
True
False
True
True