Jun-21-2020, 10:55 PM
I am just starting to learn Python. I have written this simple program to print the employee number, employee name and a picture of the employee by giving the program the employee number. Where it says "Henrys Picture", I would want an actual photograph of Henry.
My first question is can you put a picture or image into a list?
If possible I would like to put 100 pictures into my Python program, without accessing external picture files.
Is this possible or would I have to have the program load a jpeg or tif file?
Any thing to get me started would be greatly appreciated.
My first question is can you put a picture or image into a list?
If possible I would like to put 100 pictures into my Python program, without accessing external picture files.
Is this possible or would I have to have the program load a jpeg or tif file?
Any thing to get me started would be greatly appreciated.
employee = [[0,"Joe","Joes pic"],[1,"Henry","Henrys picture"],[2,"Joan","Joans picture"]] print(employee[1])