1.

Give an example of shuffle() method?

Answer»

This method SHUFFLES the string or array that is sent to it. It shuffles the array's CONTENTS. The random module contains this method. As a result, we must first import it before calling the function. When the function is CALLED, it shuffles the elements and produces various results.



Discussion

No Comment Found