Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

"Can you program?" "Well, I'm literate, if that's what you mean!"


devel / comp.lang.python / Re: From geeksforgeeks.org, on converting the string created by the input() to an INT

SubjectAuthor
o Re: From geeksforgeeks.org, on converting the string created by theChris Angelico

1
Re: From geeksforgeeks.org, on converting the string created by the input() to an INT

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

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: rosuav@gmail.com (Chris Angelico)
Newsgroups: comp.lang.python
Subject: Re: From geeksforgeeks.org, on converting the string created by the
input() to an INT
Date: Fri, 26 May 2023 10:16:54 +1000
Lines: 8
Message-ID: <mailman.7.1685060227.23016.python-list@python.org>
References: <196657712.2815157.1685058605176.ref@mail.yahoo.com>
<196657712.2815157.1685058605176@mail.yahoo.com>
<CAPTjJmovNr7HZWxENWtsy8nXz__Be-eQ9tXp94Y+E+5P+yfq3Q@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Trace: news.uni-berlin.de PM4nYxi96suCLPDjNtknigol3dCwJRiCzUSQuReaT7LA==
Return-Path: <rosuav@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=SMRatrQN;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.015
X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; '2023': 0.07; 'string':
0.07; 'chrisa': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris
angelico': 0.16; 'integer': 0.16; 'integer,': 0.16; 'subject:() ':
0.16; 'subject:created': 0.16; 'subject:string': 0.16; 'wrote:':
0.16; "can't": 0.17; 'to:addr:python-list': 0.20; 'fri,': 0.22;
'python-list': 0.32; 'message-id:@mail.gmail.com': 0.32; 'header
:In-Reply-To:1': 0.34; 'received:google.com': 0.34;
'from:addr:gmail.com': 0.35; 'converted': 0.84; 'subject: \n ':
0.84; 'subject:skip:g 10': 0.84; 'subject:From': 0.91
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20221208; t=1685060225; x=1687652225;
h=to:subject:message-id:date:from:in-reply-to:references:mime-version
:from:to:cc:subject:date:message-id:reply-to;
bh=E9Kw/4xZacr0ec9yeBNEPHEBUrRClLcdJ+1zcCwYkb4=;
b=SMRatrQNwcM8ew9u8rSwECOcPZAL3ERsUOO+7eADNP9vlDjNQphMFyVZJ3GeEWmkPK
edMfXlgkfkB0lr8ydQvxby2DY0Ls6XCod38QNLvkdLg3MjvmPStNAV1YnX04jTkWaGaU
MMssBtEUAviUBDkwBbVPn4xwK2xCMBMtvnVP3Nna6mPvSKe00fjuOB6qLhHCYBiZWBIB
t1OOdWoN6eMpDkpHFs9uasUT8mG5sKKa5qhBWX7Lww4EbTCSbqnylXHFqic5FU4l0y/8
rBWejA2XbTgk6odNbbztfzvcfTFp6PUPbyWFGWbOkWcK3sBiwI4eqbXqMtWRvJQr0EMC
YyOA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20221208; t=1685060225; x=1687652225;
h=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=E9Kw/4xZacr0ec9yeBNEPHEBUrRClLcdJ+1zcCwYkb4=;
b=W/jIsuArmunL1xdIQV53WfMqtcKjrsApe7B4VekRuCBsKyjXXPTEho8JSRey4l6WJl
yEpW6wCS3B9RtOetQGsBGA2uz1sHXviRHnurwI5DD/HDfL8PRiiylGrNTs2wV90A8FBD
Bzn00bPdRrgfbQFdybv08archRAGIoPeziwBGg/1D10WotjdY4CbzQaj3bCQF+0zDIhd
tsYCH+tQyuygn63kGSC35+4b+oTV3+GS65jYJBJjKcH8gvfxk66agDG/JRAHhyIVXrs+
ZH+KU236pVgNqWwYZku/8wkW2gs04Bahh6QWiNWR7NPc2YAWlYXbF+47JrUTN49sWJXe
Wrgg==
X-Gm-Message-State: AC+VfDzdpBLxkxA/EK2RyPpDCeFfsl/eE1VpWavNttWwWOYfsjzQTUZ8
dfsqEzHbSip+drcIemJOAOmv2vFchOO1a2+21yJ2d9I3
X-Google-Smtp-Source: ACHHUZ5OY1bXt+pPKHBG5MJAaXDzIboXGORqwvNAXwq+GL+gHTH8a3plKV7J4ruSVyr5eUmE1SKmpS9d96KQlwmS3ZI=
X-Received: by 2002:a17:906:5d10:b0:970:161d:595e with SMTP id
g16-20020a1709065d1000b00970161d595emr491408ejt.39.1685060225284; Thu, 25 May
2023 17:17:05 -0700 (PDT)
In-Reply-To: <196657712.2815157.1685058605176@mail.yahoo.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: <CAPTjJmovNr7HZWxENWtsy8nXz__Be-eQ9tXp94Y+E+5P+yfq3Q@mail.gmail.com>
X-Mailman-Original-References: <196657712.2815157.1685058605176.ref@mail.yahoo.com>
<196657712.2815157.1685058605176@mail.yahoo.com>
 by: Chris Angelico - Fri, 26 May 2023 00:16 UTC

On Fri, 26 May 2023 at 09:58, Kevin M. Wilson via Python-list
<python-list@python.org> wrote:
>
> So, why can't a string of an integer be converted to an integer, via print(int(str('23.5')))???

23.5 is not an integer, so "23.5" is not the string of an integer.

ChrisA


devel / comp.lang.python / Re: From geeksforgeeks.org, on converting the string created by the input() to an INT

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor