Re: Why Python When There Is Perl?

Liste des GroupesRevenir à col advocacy 
Sujet : Re: Why Python When There Is Perl?
De : physfitfreak (at) *nospam* gmail.com (Physfitfreak)
Groupes : comp.os.linux.advocacy
Date : 22. Mar 2024, 04:01:30
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <utiopt$2i4i5$1@dont-email.me>
References : 1 2 3 4 5
User-Agent : Mozilla Thunderbird
On 3/21/2024 3:54 AM, Farley Flud wrote:
  You already know the arithmetic (or most of it).  So start with
the logic tables:
 AND
0 and 0 = 0
0 and 1 = 0
1 and 0 = 0
1 and 1 = 1
 OR
0 or 0 = 0
0 or 1 = 1
1 or 0 = 1
1 or 1 = 1
 XOR
0 xor 0 = 0
0 xor 1 = 1
1 xor 0 = 1
1 xor 1 = 0
 These logic operations are used in making decisions that
allow branching, bit conversions, and many other crucial
operations.
 
The three operators above kind of make sense in what they do. But I have difficulty seeing the sense in IMP operator. Any idea why IMP behaves like that?
IMP
0 IMP 0  = 1
0 IMP 1  = 1
1 IMP 0  = 0
1 IMP 1  = 1
How can that be explained?...
--
This email has been checked for viruses by Avast antivirus software.
www.avast.com

Date Sujet#  Auteur
5 Oct 24 o 

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal