Question: In python please Complete the get_unique_code(word) function which takes a String as a parameter and returns a code consisting of 3 characters chosen from the
In python please
Complete the get_unique_code(word) function which takes a String as a parameter and returns a "code" consisting of 3 characters chosen from the parameter at random. The same character may not be chosen to appear in the code more than once. You can assume that the parameter passed as a parameter has more than 3 characters and contains no repeated letters. For example: Test Result result = get_unicode_code('ABCDEFGH') EFA print(result) egb result = get_unicode_code('abcdefg') print(result)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
