Re: My first program doesn't seem to do anything -- followup
ThreeBlindQuarks via Tutor <[email protected]> Sun, 28 Apr 2024 23:41:24 +0000
| Newsgroups | gmane.comp.python.tutor |
|---|---|
| Message-ID | <ZeyrlvQmNTQKPG0BZOiGuCcipSpf5_cIcWgGLcT1VcgkBzlYrDcuOrjvaKguy_J3We9eu-m8A88ccnSrGAtk14RZgaDodGSGZ-fA8mEOXJg=@proton.me> |
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 <[email protected]> wrote: > On 28Apr2024 11:14, [email protected] [email protected] 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 - [email protected] > To unsubscribe or change subscription options: > https://mail.python.org/mailman/listinfo/tutor _______________________________________________ Tutor maillist - [email protected] To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor