This function is used to generate passwords for the length requested by the users. The password generated will contain uppercase, lowercase letters, numbers and special characters. It contains only one python function where if the user calls with a specified length, he/she can obtain a confidential password for the requested length.