Question: let the variables : characters = [4, 6, 8, '/', 7, 1, 9, 0, 2, 3, '!', '(', 4, '&', 5, '', '', ' ?

let the variables : characters = [4, 6, 8, '/', 7, 1, 9, 0, 2, 3, '!', '(', 4, '&', 5, '', '', ' ? ','; ','% ',' * ',' ',' ',' + ' ]

Write a python function that takes a string as input and returns True if and only if the string contains a message made of characters from the variable characters. The string must have a length of 8, however, it can contain more than one message, but each of their length must equal 8.

Exemple:

>>> acceptable_message('68!(&%')

True

>>> acceptable_message('68!(&% 4&5?;%')

True

>>> acceptable_message('68!')

False

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!