Re: python problems on android

ThreeBlindQuarks via Tutor <[email protected]> Mon, 01 Jun 2026 19:11:15 +0000
Newsgroups gmane.comp.python.tutor
Message-ID <LEoTbLxkXWUmsG39zKNpIEKnJRs33UzznjrSB9rBbDcm_W76kNdDX9jLChoBtJJrzYHdeRy7ri5bVPLdxLJoiE6S1fzRwimOq8kdxkko46w=@proton.me>
Alan,

What I meant about a local resource was not to discourage asking here for help. Rather, since the code does work and should work anywhere you have python installed properly, the problem may be one of technique when running it.

For example, if you run it from RSTUDIO all at once, versus line by line, you can have a situation where the request to input a number prints in one place while your cursor remains in another. Typing an answer in the wrong place can make the program hang. Similarly, python often has an issue with not being sure when the statements are done and keeps putting out prompts. Sometimes you need multiple Enter/CR presses to make it continue and print out an answer.

Problems like these may be trivially seen and dealt with when someone stands next to you but cannot be diagnosed from afar -- especially when the user has not yet told us anything.

All we can say here is the code works. Hopefully the user can read Farsi and is able to deal with the prompt to enter a number and so on.





Sent with Proton Mail secure email.

On Monday, June 1st, 2026 at 4:09 AM, Alan Gauld via Tutor <[email protected]> wrote:

> On 01/06/2026 00:17, ThreeBlindQuarks via Tutor wrote:
> 
> > My guess is the person ran the code and did not supply
> > an answer that could be coerced into a number. It ran fine for me.
> 
> We can all guess what might be wrong, but we don;t know. It could be an
> installation problem, and android issue, or as you say a simple user
> input problem. Until the poster gives us more information it remains a
> guess.
> 
> > The OP may want to ask someone locally how to run code
> 
> That might not be an option. One of the reasons this list
> exists is to help people who have nobody else to ask.
> 
> > explain more precisely what is wrong.
> 
> But they definitely need to do this since we have no clue
> what the problem is at present.
> 
> --
> Alan G
> Author of the Learn to Program web site
> http://www.alan-g.me.uk/
> http://www.amazon.com/author/alan_gauld
> Follow my photo-blog on Flickr at:
> http://www.flickr.com/photos/alangauldphotos
> 
> 
> 
> _______________________________________________
> Tutor maillist  -  To unsubscribe send an email to [email protected]
> To unsubscribe or change subscription options:
> %(web_page_url)slistinfo/%(_internal_name)s
> 
_______________________________________________
Tutor maillist  -  To unsubscribe send an email to [email protected]
To unsubscribe or change subscription options:
%(web_page_url)slistinfo/%(_internal_name)s