[Tutor] Given a string, call a function of that name

2017-05-16 Thread boB Stepp
My son (Now 13 years old.) is merrily programming away in Python 3 (Of course!) and has many projects he is working on. Today he resumed work on his efforts to create a natural language parser, which he hopes will enable people to type in commands to a DnD-like game using natural English. An

Re: [Tutor] how do i open picture files without knowing the file name?

2017-05-16 Thread Michael C
i ll look into it! thx for now! On Tue, May 16, 2017 at 12:51 PM, Alan Gauld via Tutor wrote: > On 16/05/17 19:49, Michael C wrote: > > I am running this code so I can do some image manipulation with them. > > The thing is, I have a lot of pictures to go through, so I can't

Re: [Tutor] how do i open picture files without knowing the file name?

2017-05-16 Thread Alan Gauld via Tutor
On 16/05/17 19:49, Michael C wrote: > I am running this code so I can do some image manipulation with them. > The thing is, I have a lot of pictures to go through, so I can't type the > file names Do you know the folder where they live? If so os.listdir() will give you a list of filenames. If

[Tutor] how do i open picture files without knowing the file name?

2017-05-16 Thread Michael C
I am running this code so I can do some image manipulation with them. The thing is, I have a lot of pictures to go through, so I can't type the file names one by one in the code. However, the order of the files to be processed doesn't matter, so getting them in a random fashion is alright! How do