Deutsch English Français Italiano |
<utiopt$2i4i5$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Physfitfreak <physfitfreak@gmail.com> Newsgroups: comp.os.linux.advocacy Subject: Re: Why Python When There Is Perl? Date: Thu, 21 Mar 2024 21:01:30 -0500 Organization: A noiseless patient Spider Lines: 46 Message-ID: <utiopt$2i4i5$1@dont-email.me> References: <17be420c4f90bfc7$63225$1585792$802601b3@news.usenetexpress.com> <utd86u$1ipcj$1@solani.org> <17be75acfaf8f0f4$2017$3384359$802601b3@news.usenetexpress.com> <utfol0$1k8j7$1@solani.org> <17bebbae334656b9$74345$2906873$802601b3@news.usenetexpress.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Fri, 22 Mar 2024 02:01:33 -0000 (UTC) Injection-Info: dont-email.me; posting-host="713294b5bffeb8b7cdc35165c834ab09"; logging-data="2691653"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+1QQaYxAsx9BTL6C15Ulyim6r8bJkTJv0=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:sa2Cpc7SHZmrOyun7qNuwjScupI= X-Antivirus: Avast (VPS 240321-4, 3/21/2024), Outbound message Content-Language: en-US X-Antivirus-Status: Clean In-Reply-To: <17bebbae334656b9$74345$2906873$802601b3@news.usenetexpress.com> Bytes: 2190 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