Deutsch English Français Italiano |
<mailman.54.1712002101.3468.python-list@python.org> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!fu-berlin.de!uni-berlin.de!not-for-mail From: dn <PythonList@DancesWithMice.info> 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> Bytes: 5198 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