Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

A rolling disk gathers no MOS.


devel / comp.lang.python / Multiplication

SubjectAuthor
* MultiplicationStefan Ram
`* Re: MultiplicationPiergiorgio Sartor
 +- Re: MultiplicationJoel Goldstick
 +- Re: MultiplicationD'Arcy Cain
 +- Re: MultiplicationAvi Gross
 `- Re: Multiplicationdn

1
Multiplication

<multiplication-20240401093746@ram.dialup.fu-berlin.de>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=29775&group=comp.lang.python#29775

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: ram@zedat.fu-berlin.de (Stefan Ram)
Newsgroups: comp.lang.python
Subject: Multiplication
Date: 1 Apr 2024 08:40:41 GMT
Organization: Stefan Ram
Lines: 18
Expires: 1 Feb 2025 11:59:58 GMT
Message-ID: <multiplication-20240401093746@ram.dialup.fu-berlin.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: news.uni-berlin.de vy749U0fzbqu8a8JdsjO/AFZrQYS2Vq9I+FYV1O1WbLgK7
Cancel-Lock: sha1:MFipfl6espEVzVdgoAQ2pO7WxSI= sha256:MgNk3bw7EHNEt2kb1rZpJqDVEH0WgWxbBytss5LztUU=
X-Copyright: (C) Copyright 2024 Stefan Ram. All rights reserved.
Distribution through any means other than regular usenet
channels is forbidden. It is forbidden to publish this
article in the Web, to change URIs of this article into links,
and to transfer the body without this notice, but quotations
of parts in other Usenet posts are allowed.
X-No-Archive: Yes
Archive: no
X-No-Archive-Readme: "X-No-Archive" is set, because this prevents some
services to mirror the article in the web. But the article may
be kept on a Usenet archive server with only NNTP access.
X-No-Html: yes
Content-Language: en-US
 by: Stefan Ram - Mon, 1 Apr 2024 08:40 UTC

Q: How can I multiply two variables in Python? I tried:

a = 2
b = 3
print( ab )

but it did not work.

A: No, this cannot work. To multiply, you need the multiplication
operator. You can import the multiplication operator from "math":

Code example:

from math import *

a = 2
b = 3
print( a * b )

Re: Multiplication

<p49qdk-ea6.ln1@lazy.lzy>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=29776&group=comp.lang.python#29776

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: piergiorgio.sartor.this.should.not.be.used@nexgo.REMOVETHIS.de (Piergiorgio Sartor)
<piergiorgio.sartor.this.should.not.be.used@nexgo.REMOVETHIS.de>
Newsgroups: comp.lang.python
Subject: Re: Multiplication
Date: Mon, 1 Apr 2024 10:51:05 +0200
Organization: A noiseless patient Spider
Lines: 28
Message-ID: <p49qdk-ea6.ln1@lazy.lzy>
References: <multiplication-20240401093746@ram.dialup.fu-berlin.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 01 Apr 2024 08:54:45 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="5759890b231061ed942a2b90dc3178e5";
logging-data="2528412"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/ryzTxFH6US7DUc3HuPMR0"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:I3N8vhYlbpzIzJZ0eC1AxoBMx+A=
Content-Language: it, en-GB
In-Reply-To: <multiplication-20240401093746@ram.dialup.fu-berlin.de>
 by: Piergiorgio Sartor - Mon, 1 Apr 2024 08:51 UTC

On 01/04/2024 10.40, Stefan Ram wrote:
> Q: How can I multiply two variables in Python? I tried:
>
> a = 2
> b = 3
> print( ab )
>
> but it did not work.
>
> A: No, this cannot work. To multiply, you need the multiplication
> operator. You can import the multiplication operator from "math":
>
> Code example:
>
> from math import *
>
> a = 2
> b = 3
> print( a * b )

I guess the operator "*" can be imported from any module... :-)

bye,

--

piergiorgio

Re: Multiplication

<mailman.49.1711992939.3468.python-list@python.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=29780&group=comp.lang.python#29780

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: joel.goldstick@gmail.com (Joel Goldstick)
Newsgroups: comp.lang.python
Subject: Re: Multiplication
Date: Mon, 1 Apr 2024 13:35:26 -0400
Lines: 46
Message-ID: <mailman.49.1711992939.3468.python-list@python.org>
References: <multiplication-20240401093746@ram.dialup.fu-berlin.de>
<p49qdk-ea6.ln1@lazy.lzy>
<CAPM-O+wGM_22jYm56SkT-GRrNc0cWb4+jNcTDtAnGoTNhnt+8A@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Trace: news.uni-berlin.de ml/yi1+CEyoQTrkeubp3AwxrMlU3eVHerHt6dwZne1pg==
Cancel-Lock: sha1:mLHbOqrBWM1RcjPfu9a0HpbyfIg= sha256:WY4fI7EFRZx6spj4e9WBBmdQQsKyZE+uDSopOrjk3lg=
Return-Path: <joel.goldstick@gmail.com>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=gmail.com header.i=@gmail.com header.b=U/htjQnX;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.001
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'python?': 0.03; 'math':
0.05; 'ram': 0.07; ':-)': 0.09; 'cc:addr:python-list': 0.09;
'example:': 0.09; 'cc:no real name:2**0': 0.14; 'import': 0.15;
'url:mailman': 0.15; '2024': 0.16; 'print(': 0.16; 'received:mail-
ej1-x636.google.com': 0.16; 'wrote:': 0.16; 'cc:addr:python.org':
0.20; 'code': 0.23; 'url-ip:188.166.95.178/32': 0.25; 'url-
ip:188.166.95/24': 0.25; 'url:listinfo': 0.25; 'cannot': 0.25;
'cc:2**0': 0.25; 'url-ip:188.166/16': 0.25; 'stefan': 0.26; '>>>':
0.28; 'url-ip:188/8': 0.31; 'guess': 0.32; 'python-list': 0.32;
'message-id:@mail.gmail.com': 0.32; 'but': 0.32; 'work.': 0.34;
'header:In-Reply-To:1': 0.34; 'received:google.com': 0.34;
'from:addr:gmail.com': 0.35; 'mon,': 0.36; 'two': 0.39; 'to:none':
0.60; 'joel': 0.91; 'subject:skip:M 10': 0.91
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20230601; t=1711992938; x=1712597738; darn=python.org;
h=content-transfer-encoding:cc:subject:message-id:date:from
:in-reply-to:references:mime-version:from:to:cc:subject:date
:message-id:reply-to;
bh=jkk72p85ObjyqJZDAyEp/0p17DBkel5Fc6I5Ham3SEc=;
b=U/htjQnXzcSZBB5hNudVC68/dpXBP5nxrMMlZO2ang5MwRVJ58rP9gYbLaKzoQjkul
wYWqoRB869F8D6o7+qr43dPY8Sn/wBWNzKshjpXUq6fzqWSlEkcWrY1a1useKXivaC7d
33s5+q/VVnxxZ4JXfyvEwse9cL0WjOa5/hwOJafcRUMFu8AAG1MpRYiVt4JOPkDxSNqd
0svwhGwg2Z4RgubasmtA3eQPUlKIwieEgaSz2SkZAD9X7Nf+9D/tMOwWbeXzGR9SLZRe
h78Ouvl8UgWy9G1y2wySustLys20fl/0OBKuJp/CKBwjNBlY9Wkl41vMirswurcq6AGC
kECw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1711992938; x=1712597738;
h=content-transfer-encoding:cc:subject:message-id:date:from
:in-reply-to:references:mime-version:x-gm-message-state:from:to:cc
:subject:date:message-id:reply-to;
bh=jkk72p85ObjyqJZDAyEp/0p17DBkel5Fc6I5Ham3SEc=;
b=GQiHZZe0y9u7JJTN4wLVSnWpxIlS3+rCvMz4MTQdcpEgNtSPmV5wsMkRZjLBOAL05w
TZNb+4w6TKWZD/xwut4teJrDQxWtCE214Hk3+ruyXxMhU5RwruyKcLZcLrtRBuQp+vaA
UF+0mwbEWIBM5sIf9R1x3PRJ6Xw8PLg/CgoisfMkPjuuAlQ3n0Yq7ETnt8uu/hotfXA6
C0NuNO3ZlAeRMbS2DBYRt1ICt9j7SYYLF86phkexPBLncTSS9jSGYQdDr2rehxP6kmZs
UpjpDWM9fQGUVy6YVvfHy2WiLRPrcOBrB5KKfCntravtUvckRZjaGdF95UIuTrT55/5v
Ttdg==
X-Gm-Message-State: AOJu0YzfnLo3O7Zr1sE2rcUMLKfcM0NYVGorcBN4deNytLuMX+/6/hA+
CizmTV3H08BRbY60w4T7NHZsYR4tcp9PK9kZGJG3K3SgXDSPim4gR6cM6P+ivQEY3l7S0sQDLHM
JSqmnQ4f8Ru7TDHAPoeKDySehChMDZohuNOY=
X-Google-Smtp-Source: AGHT+IHkSP5cbLe2YiQwwJskbzLV9tIz/qaOAD1eee5imcsGVOiYOqY9LNLK2W6goed9t6H0xqdnepHmeMJgshOaVc8=
X-Received: by 2002:a17:906:46cd:b0:a46:f6f8:c96f with SMTP id
k13-20020a17090646cd00b00a46f6f8c96fmr7579322ejs.33.1711992937949; Mon, 01
Apr 2024 10:35:37 -0700 (PDT)
In-Reply-To: <p49qdk-ea6.ln1@lazy.lzy>
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <CAPM-O+wGM_22jYm56SkT-GRrNc0cWb4+jNcTDtAnGoTNhnt+8A@mail.gmail.com>
X-Mailman-Original-References: <multiplication-20240401093746@ram.dialup.fu-berlin.de>
<p49qdk-ea6.ln1@lazy.lzy>
 by: Joel Goldstick - Mon, 1 Apr 2024 17:35 UTC

On Mon, Apr 1, 2024 at 1:26 PM Piergiorgio Sartor via Python-list
<python-list@python.org> wrote:
>
> On 01/04/2024 10.40, Stefan Ram wrote:
> > Q: How can I multiply two variables in Python? I tried:
> >
> > a = 2
> > b = 3
> > print( ab )
> >
> > but it did not work.
> >
> > A: No, this cannot work. To multiply, you need the multiplication
> > operator. You can import the multiplication operator from "math":
> >
> > Code example:
> >
> > from math import *
> >
> > a = 2
> > b = 3
> > print( a * b )
>
> I guess the operator "*" can be imported from any module... :-)
>
> bye,
>
> --
>
> piergiorgio
>
> --
> https://mail.python.org/mailman/listinfo/python-list

>>> a = 3
>>> b = 5
>>> print(a*b)
15
>>>

No import is necessary.

--
Joel Goldstick

Re: Multiplication

<mailman.52.1711996810.3468.python-list@python.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=29783&group=comp.lang.python#29783

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: darcy@VybeNetworks.com (D'Arcy Cain)
Newsgroups: comp.lang.python
Subject: Re: Multiplication
Date: Mon, 1 Apr 2024 13:34:36 -0500
Organization: Vybe Networks Inc.
Lines: 21
Message-ID: <mailman.52.1711996810.3468.python-list@python.org>
References: <multiplication-20240401093746@ram.dialup.fu-berlin.de>
<p49qdk-ea6.ln1@lazy.lzy>
<CAPM-O+wGM_22jYm56SkT-GRrNc0cWb4+jNcTDtAnGoTNhnt+8A@mail.gmail.com>
<8dd3eb18-2916-4f0e-97b3-12c310013c0a@VybeNetworks.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: news.uni-berlin.de M22LNE+k81sKOHX4xp2gQQJL0BS80+appZOg4TtOSCjg==
Cancel-Lock: sha1:m8SSDrpLk0mA4FLR/QEWvnrpuQo= sha256:yGeBp5bZDxF3WUT7EA838IF4VuXsi24VZF8+jOLsv2U=
Return-Path: <darcy@VybeNetworks.com>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="1024-bit key; unprotected key"
header.d=vybenetworks.com header.i=@vybenetworks.com
header.b=L+3DTQFP; dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.061
X-Spam-Evidence: '*H*': 0.90; '*S*': 0.02; 'math': 0.05; ':-)': 0.09;
'import': 0.15; '12:35,': 0.16; '2024': 0.16; 'print(': 0.16;
'wrote:': 0.16; 'to:addr:python-list': 0.20; '>>>': 0.28; 'header
:User-Agent:1': 0.30; 'header:Organization:1': 0.31; 'guess':
0.32; 'python-list': 0.32; 'header:In-Reply-To:1': 0.34;
'networks': 0.35; 'mon,': 0.36; 'received:192.168': 0.37;
'received:98': 0.40; 'inc.': 0.73; 'url-ip:98/8': 0.84; 'joel':
0.91; 'subject:skip:M 10': 0.91
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=vybenetworks.com;
s=VEXNET; t=1711996478;
bh=bFQMPOa2xnaqLIbkjfJuEEDqROh4PGhpM+lz5Vxw+8c=;
h=Date:Subject:To:References:From:In-Reply-To;
b=L+3DTQFPbXUUCSMuYvJvDuhPxJW1bFtGrZMryoNEUpLoMJjVJspknYW6zHchuQPFT
gjA1QUTEFVIKkTLcIb0SMQ0QHQFJdSl4i/YYpQ8c70IExNJj3Pia8fHjovfTZcWkZk
rD9EnRngNGitKCWJ/bnmt0bARTBvgRV3ur1GP+Lc=
User-Agent: Mozilla Thunderbird
Content-Language: en-US
In-Reply-To: <CAPM-O+wGM_22jYm56SkT-GRrNc0cWb4+jNcTDtAnGoTNhnt+8A@mail.gmail.com>
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <8dd3eb18-2916-4f0e-97b3-12c310013c0a@VybeNetworks.com>
X-Mailman-Original-References: <multiplication-20240401093746@ram.dialup.fu-berlin.de>
<p49qdk-ea6.ln1@lazy.lzy>
<CAPM-O+wGM_22jYm56SkT-GRrNc0cWb4+jNcTDtAnGoTNhnt+8A@mail.gmail.com>
 by: D'Arcy Cain - Mon, 1 Apr 2024 18:34 UTC

On 2024-04-01 12:35, Joel Goldstick via Python-list wrote:
> On Mon, Apr 1, 2024 at 1:26 PM Piergiorgio Sartor via Python-list
^^^^^^^^^^^

>>> from math import *
>>>
>>> a = 2
>>> b = 3
>>> print( a * b )
>>
>> I guess the operator "*" can be imported from any module... :-)
> No import is necessary.

Of course not. Check the date on the message.

--
D'Arcy J.M. Cain
Vybe Networks Inc.
http://www.VybeNetworks.com/
IM:darcy@Vex.Net VoIP: sip:darcy@VybeNetworks.com

Re: Multiplication

<mailman.53.1711998180.3468.python-list@python.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=29784&group=comp.lang.python#29784

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: avi.e.gross@gmail.com (Avi Gross)
Newsgroups: comp.lang.python
Subject: Re: Multiplication
Date: Mon, 1 Apr 2024 15:02:46 -0400
Lines: 43
Message-ID: <mailman.53.1711998180.3468.python-list@python.org>
References: <multiplication-20240401093746@ram.dialup.fu-berlin.de>
<p49qdk-ea6.ln1@lazy.lzy>
<CABaFrRb93X7GLzw41L-Phz9LjtQA_hGiWdFVxjYMhEWxFAHZBw@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Trace: news.uni-berlin.de da9Z4nvearQKP9iF5LnKsA2Cvzm9/A26kS327IDyaZbQ==
Cancel-Lock: sha1:ZDrbOoaC3lAdkhGclLQiIumYbPo= sha256:5aecq+PNC6xN9Jv0y5vFiqt1cyBmJMfDHTPmpfjqwmY=
Return-Path: <avi.e.gross@gmail.com>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=gmail.com header.i=@gmail.com header.b=BI2at/CU;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.001
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'pfxlen:0': 0.03;
'python?': 0.03; 'math': 0.05; 'ram': 0.07; 'python.': 0.08;
':-)': 0.09; 'cc:addr:python-list': 0.09; 'email
addr:python.org>': 0.09; 'example:': 0.09; '&gt;': 0.14; 'import':
0.15; 'url:mailman': 0.15; 'cc:name:python list': 0.16; 'print(':
0.16; 'received:mail-pf1-x42d.google.com': 0.16; 'symbol': 0.16;
'wrote:': 0.16; 'cc:addr:python.org': 0.20; 'code': 0.23; 'url-
ip:188.166.95.178/32': 0.25; 'url-ip:188.166.95/24': 0.25;
'url:listinfo': 0.25; 'cannot': 0.25; 'cc:2**0': 0.25; 'url-
ip:188.166/16': 0.25; 'stefan': 0.26; 'email addr:python.org&gt;':
0.28; 'url-ip:188/8': 0.31; 'guess': 0.32; 'python-list': 0.32;
'message-id:@mail.gmail.com': 0.32; 'but': 0.32; 'same': 0.34;
'work.': 0.34; 'header:In-Reply-To:1': 0.34;
'received:google.com': 0.34; 'meaning': 0.35;
'from:addr:gmail.com': 0.35; 'built': 0.36; 'mon,': 0.36; 'two':
0.39; 'everything': 0.63; 'email name:&lt;python-list': 0.84;
'fools.': 0.84; 'largely': 0.91; 'subject:skip:M 10': 0.91
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20230601; t=1711998178; x=1712602978; darn=python.org;
h=cc:to:subject:message-id:date:from:in-reply-to:references
:mime-version:from:to:cc:subject:date:message-id:reply-to;
bh=yq+OaMVRm/8vWbvArry/aB0pb1Q+zRO+7xWrt2vDwTk=;
b=BI2at/CUDUV/a6Pk361fd1qy43CYHIWh0rcqvbT9o61/apnnKgnZHSq+0vIEeyqiwZ
W3G6x7LzWLiCzdMKOL4opwTSmGt3nAmfi6IFc/d4nwvcLHG69iHrCZgf7nuoUjSX4bt2
x1T251ur92bVjw9DO+Q3tQ8IyTdlu4oJyAhQf9q2t8HBDJPvxa8X7pSJbBacLpkNtz6S
U812sndLLzmBsKD0WHUlpVeAcdMp0vVUzfTsDBCjtdoBlZbP8thDMiIxrcXWCkWVaTh7
G+dkRCLNa+BLFozTxVz9/rUp1FcKLyhCDCrIA8t9elqVJWVPzeA4QDmJinOMYVgZY5fK
4jMw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1711998178; x=1712602978;
h=cc:to:subject:message-id:date:from:in-reply-to:references
:mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
:reply-to;
bh=yq+OaMVRm/8vWbvArry/aB0pb1Q+zRO+7xWrt2vDwTk=;
b=JMNo+6NSWheBCbukBL0tezNG4l4vGfaZWC1cea+6KHu8bFgVGahVXslLYvt5aeNvPp
yNaLfOJBgnmQF6gdCunm2+kE9hTISHJ3gpWdhDXLT9bllc0BPIS/53YwD24LmYtOA9V5
bw4LYEf9TuqgZqAlROwmfbo1iVlNLf7qyDkhUK/QsVGa8UARJn08+xzWr7GS+6nMlbsE
siZql+mBYig2JiXYWXD2j2JxoKE06ZYLIUy5k9mBhNYmLKCWKq9nQJO34BzflYRHycwX
JUHMzT5Z0XLiK6eAsCNnXTFs9nEdKFR7vjlNxlsvk7lj/R2OqhCHHXtQig/tcjEytGSw
wqTQ==
X-Gm-Message-State: AOJu0YxPtR+pFS0gFEqeI82ERljL1iglk5Bn56wYnTniuJCJXPyje3bd
9tWSiixsuk2+nZHKq//nOI7RtjrJWwzsApthJ9pxnQCNeSXUH1MUvhOvkQppTWPAPxGq/+tj5fP
JO0RkMZnzy0G2oEO+eVlWhLkKEKr/noYt
X-Google-Smtp-Source: AGHT+IEljQn83+UAUqF6T2uZtZCVnBycv+BVB5iNy8XfqdUDYfxZ4XKfH6WxezwtPrjJqRi/vMYo2FMK+gmy24LR5Tw=
X-Received: by 2002:a05:6a20:5482:b0:1a7:c80:be9c with SMTP id
i2-20020a056a20548200b001a70c80be9cmr6443883pzk.40.1711998177613; Mon, 01 Apr
2024 12:02:57 -0700 (PDT)
In-Reply-To: <p49qdk-ea6.ln1@lazy.lzy>
X-Content-Filtered-By: Mailman/MimeDel 2.1.39
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <CABaFrRb93X7GLzw41L-Phz9LjtQA_hGiWdFVxjYMhEWxFAHZBw@mail.gmail.com>
X-Mailman-Original-References: <multiplication-20240401093746@ram.dialup.fu-berlin.de>
<p49qdk-ea6.ln1@lazy.lzy>
 by: Avi Gross - Mon, 1 Apr 2024 19:02 UTC

Is this a April 1 post for fools.

Multiplication with an asterisk symbol is built into python.

The same symbol used in other contexts has other contexts has an assortment
of largely unrelated meanings such as meaning everything when used to
import.

On Mon, Apr 1, 2024, 1:27 PM Piergiorgio Sartor via Python-list <
python-list@python.org> wrote:

> On 01/04/2024 10.40, Stefan Ram wrote:
> > Q: How can I multiply two variables in Python? I tried:
> >
> > a = 2
> > b = 3
> > print( ab )
> >
> > but it did not work.
> >
> > A: No, this cannot work. To multiply, you need the multiplication
> > operator. You can import the multiplication operator from "math":
> >
> > Code example:
> >
> > from math import *
> >
> > a = 2
> > b = 3
> > print( a * b )
>
> I guess the operator "*" can be imported from any module... :-)
>
> bye,
>
> --
>
> piergiorgio
>
> --
> https://mail.python.org/mailman/listinfo/python-list
>

Re: Multiplication

<mailman.54.1712002101.3468.python-list@python.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=29785&group=comp.lang.python#29785

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: PythonList@DancesWithMice.info (dn)
Newsgroups: comp.lang.python
Subject: Re: Multiplication
Date: Tue, 2 Apr 2024 09:02:22 +1300
Organization: DWM
Lines: 53
Message-ID: <mailman.54.1712002101.3468.python-list@python.org>
References: <multiplication-20240401093746@ram.dialup.fu-berlin.de>
<p49qdk-ea6.ln1@lazy.lzy>
<CABaFrRb93X7GLzw41L-Phz9LjtQA_hGiWdFVxjYMhEWxFAHZBw@mail.gmail.com>
<0b9d3ac0-63a3-4f30-98d7-b52c0eae62cf@DancesWithMice.info>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: news.uni-berlin.de yJ5HBx05InG5DEF4xEDIOQeUdFB1yOoHeCPsd2qPvvvw==
Cancel-Lock: sha1:pc430RQe4lr046u6Mx250GLMt+k= sha256:LVosdVejKKYtWEhcD+lIAz39L612LMpVR0MBquRQoLA=
Return-Path: <PythonList@DancesWithMice.info>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=danceswithmice.info header.i=@danceswithmice.info
header.b=W+Z7B6DT; dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.000
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'python?': 0.03; 'math':
0.05; 'ram': 0.07; 'python.': 0.08; ':-)': 0.09; '=dn': 0.09;
'email addr:python.org>': 0.09; 'example:': 0.09;
'from:addr:danceswithmice.info': 0.09; 'from:addr:pythonlist':
0.09; 'import': 0.15; 'url:mailman': 0.15; 'avi': 0.16; 'gross':
0.16; 'message-id:@DancesWithMice.info': 0.16; 'print(': 0.16;
'received:cloud': 0.16; 'received:rangi.cloud': 0.16; 'symbol':
0.16; 'wrote:': 0.16; 'to:addr:python-list': 0.20; 'code': 0.23;
'url-ip:188.166.95.178/32': 0.25; 'url-ip:188.166.95/24': 0.25;
'url:listinfo': 0.25; 'cannot': 0.25; 'url-ip:188.166/16': 0.25;
'stefan': 0.26; '>>>': 0.28; 'header:User-Agent:1': 0.30;
'header:Organization:1': 0.31; 'url-ip:188/8': 0.31; 'guess':
0.32; 'python-list': 0.32; 'received:192.168.1': 0.32; 'but':
0.32; 'same': 0.34; 'work.': 0.34; 'header:In-Reply-To:1': 0.34;
'meaning': 0.35; 'built': 0.36; 'mon,': 0.36; 'those': 0.36;
'received:192.168': 0.37; 'two': 0.39; 'everything': 0.63;
'receive': 0.71; 'fools.': 0.84; 'largely': 0.91; 'subject:skip:M
10': 0.91
DKIM-Filter: OpenDKIM Filter v2.11.0 vps.rangi.cloud 1CF303D71
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=danceswithmice.info;
s=staff; t=1712001767;
bh=rtH9p92ZmGCpibOG47z9gu/dVRdszDN6xp5eKqwXr6E=;
h=Date:From:Subject:To:References:In-Reply-To:From;
b=W+Z7B6DTDSl+39jl6HB2mlmzSczhs7/LYNuoIWbol/f0XkSoui2DGBOXm9aU2LieO
yX5vJICacVZBzGYZ43INVqjsUhiSh1vA2LjGTknJuXeAwsCU5aUJyiVBpn3Pn8vMjX
s1rkaSe9rApXdS4GBRoduaWQLxaXQpX8YCj/e5zcP++qLh0zp8/g/xdIdxdZmrMggN
H7tbWmH+t9yBqTxhQc1HhooWhE75yQUPhlGd6OTCDVfv+edHmcOzJRkTkOTmVKNPg/
Ylpni9RfDM+pkttTCJn6ieNPYC8z0BZqlqY+qxDYK3NQaCavBGFxqf2KNNwrwRpA+4
ftXwwj/IZIv0w==
User-Agent: Mozilla Thunderbird
Content-Language: en-US
In-Reply-To: <CABaFrRb93X7GLzw41L-Phz9LjtQA_hGiWdFVxjYMhEWxFAHZBw@mail.gmail.com>
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <0b9d3ac0-63a3-4f30-98d7-b52c0eae62cf@DancesWithMice.info>
X-Mailman-Original-References: <multiplication-20240401093746@ram.dialup.fu-berlin.de>
<p49qdk-ea6.ln1@lazy.lzy>
<CABaFrRb93X7GLzw41L-Phz9LjtQA_hGiWdFVxjYMhEWxFAHZBw@mail.gmail.com>
 by: dn - Mon, 1 Apr 2024 20:02 UTC

The April Fools joke was on those of us who never received/have yet to
receive @Stefan's OP.

On 2/04/24 08:02, Avi Gross via Python-list wrote:
> Is this a April 1 post for fools.
>
> Multiplication with an asterisk symbol is built into python.
>
> The same symbol used in other contexts has other contexts has an assortment
> of largely unrelated meanings such as meaning everything when used to
> import.
>
>
> On Mon, Apr 1, 2024, 1:27 PM Piergiorgio Sartor via Python-list <
> python-list@python.org> wrote:
>
>> On 01/04/2024 10.40, Stefan Ram wrote:
>>> Q: How can I multiply two variables in Python? I tried:
>>>
>>> a = 2
>>> b = 3
>>> print( ab )
>>>
>>> but it did not work.
>>>
>>> A: No, this cannot work. To multiply, you need the multiplication
>>> operator. You can import the multiplication operator from "math":
>>>
>>> Code example:
>>>
>>> from math import *
>>>
>>> a = 2
>>> b = 3
>>> print( a * b )
>>
>> I guess the operator "*" can be imported from any module... :-)
>>
>> bye,
>>
>> --
>>
>> piergiorgio
>>
>> --
>> https://mail.python.org/mailman/listinfo/python-list
>>

--
Regards,
=dn

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor