[Tutor] My first program doesn't seem to do anything -- followup

ThreeBlindQuarks threesomequarks at proton.me
Sun Apr 28 19:41:24 EDT 2024


Cameron,

The program probably worked perfectly based on what was asked for. If you asked how to write a function that does what you want, and forget to mention you also want to DO IT, it will tell you how to make the function and unless you add some thought of your own, it will run it exactly zero times with zero results.

I have seen variants of this if someone wants a function that accepts multiple arguments that fine tune what it does, such as specify whether or not the data has a header row, and then they call the function and whatever defaults it uses are not what they want, they complain that I gave them the wrong function. Maybe, but you also have to read the manual page or other instructions and call it appropriately. Sometimes you need to tune it so much, that perhaps a different function might have been a better choice for you.

Let us know if it works once you properly invoke it.

Cue.



Sent with Proton Mail secure email.

On Sunday, April 28th, 2024 at 5:08 PM, Cameron Simpson <cs at cskk.id.au> wrote:

> On 28Apr2024 11:14, carrfamily at mindspring.com carrfamily at mindspring.com wrote:
> 
> > in Visual Studio Code. After finally getting it error-free, I ran it
> > but no
> > window opens. Nothing seems to happen. Please advise. Here's the program.
> 
> 
> You define the display_images(folder_path) function but you never call
> it. So it never runs.
> _______________________________________________
> Tutor maillist - Tutor at python.org
> To unsubscribe or change subscription options:
> https://mail.python.org/mailman/listinfo/tutor


More information about the Tutor mailing list