Please answer it in Python
List of colour= Green,blue,yellow,white,red
Write a function name_file that takes as an argument a color
string corresponding to a color existing in the image files and
that returns the names of the corresponding preceded by the string
'images/' and with the extension '.gif'. To find out the format in
which these file names are built, look at the names in the images
directory. For example, the call to name_file ("white") returns
'images/TdB_white.gif' and 'images/mini_TdB_white.gif'.
Please answer it in Python List of colour= Green,blue,yellow,white,red Write a function name_file that takes as an argum
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Please answer it in Python List of colour= Green,blue,yellow,white,red Write a function name_file that takes as an argum
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!