Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!eternal-september.org!news.building-m.net!news.quux.org!news.szaf.org!fu-berlin.de!uni-berlin.de!not-for-mail From: ram@zedat.fu-berlin.de (Stefan Ram) Newsgroups: comp.lang.python Subject: Re: A problem with str VS int. Date: 10 Dec 2023 11:09:33 GMT Organization: Stefan Ram Lines: 10 Expires: 1 Dec 2024 11:59:58 GMT Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: news.uni-berlin.de UclJzpevUMpJw9cIIrtyoQj50VLGwgnGVYjuYP6ytbSE+Y Cancel-Lock: sha1:HQ1HnfM3pkaWEyvaqFCNZG3FFWk= sha256:eIy8aIj3xDn0puMDkDZ51dLmdzM6pp/tE4epXid2xp0= X-Copyright: (C) Copyright 2023 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 Accept-Language: de-DE-1901, en-US, it, fr-FR "Steve GS" writes: >I converted the variable to int along with the if statement >comparison and it works as expected. |>>> "2">"10" |True because, in a dictionary, the word "2" would be inserted after "10".