Please answer it in Python List of colour= Green,blue,yellow,white,red Write a function name_file that takes as an argum

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
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

Post by answerhappygod »

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'.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply