Path: ...!fu-berlin.de!uni-berlin.de!not-for-mail From: ram@zedat.fu-berlin.de (Stefan Ram) Newsgroups: comp.lang.python Subject: Re: Flubbed it in the second interation through the string: range error... HOW? Date: 29 May 2024 11:59:20 GMT Organization: Stefan Ram Lines: 17 Expires: 1 Feb 2025 11:59:58 GMT Message-ID: References: <1901134155.5453771.1716957203090.ref@mail.yahoo.com> <1901134155.5453771.1716957203090@mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: news.uni-berlin.de SOMB4dExmG8tLdzwFvoLrwwT7gq5acG9tfP6WAiYGYshxL Cancel-Lock: sha1:i4OV0pcBEJlE/Ol2V0dAwCL0IHw= sha256:MoN5xbAaYJvNPp7+Jy47YdCM+TFT+vtuWPUum2M746Y= 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 Bytes: 2427 "Kevin M. Wilson" wrote or quoted: >The following is my effort to understand how to process a >string, letter, by letter: The term "process" is a description of the utmost vagueness, failing to elucidate your intended actions. Thus, I would counsel you to first articulate in the English vernacular the objectives you wish to attain, such that any individual could compose the code in accordance with said English text. The notion of desiring to manipulate a sequence of characters in a "character by character" fashion could potentially be a vestigial remnant of prior knowledge acquired from other programming languages. Perchance, one might adopt an entirely disparate approach in Python to accomplish what you truly aspire to achieve. Ergo, it is imperative that we comprehend your genuine objectives, so as to proffer you the most optimal assistance.