#CODE_CHALLENGE_2 #FUNCTION #LIST_SLIC #STRING
1. Commercial bank of Ethiopia realized that their policy of using the first five letters of an employee’s last name as a user name isn’t ideal when they have multiple employees with the same last name.
Write a function called account_generator that takes two inputs, first_name and last_name and concatenates the first three letters of each and then returns the new account name.
2. They also wants to update how they generate temporary passwords for new employees.
Write a function called password_generator that takes two inputs, first_name and last_name and then concatenate the last three letters of each and returns them as a string.
Example: first_name = "Asibeh"
last_name = "Tenager"
expected output: user_name = AsiTen
temp_password = behger
Post your solution @PYTHONETHBOT
1. Commercial bank of Ethiopia realized that their policy of using the first five letters of an employee’s last name as a user name isn’t ideal when they have multiple employees with the same last name.
Write a function called account_generator that takes two inputs, first_name and last_name and concatenates the first three letters of each and then returns the new account name.
2. They also wants to update how they generate temporary passwords for new employees.
Write a function called password_generator that takes two inputs, first_name and last_name and then concatenate the last three letters of each and returns them as a string.
Example: first_name = "Asibeh"
last_name = "Tenager"
expected output: user_name = AsiTen
temp_password = behger
Post your solution @PYTHONETHBOT
#Code_Challenge #python #function #loop
Write a function that will return the sum of the first item in the data list and every tenth item after?
Write a function that will return the sum of the first item in the data list and every tenth item after?
How to convert function to lamda function in Python
Subscribe and Share
https://www.youtube.com/watch?v=YXGw5CyBAzs
Subscribe and Share
https://www.youtube.com/watch?v=YXGw5CyBAzs
YouTube
Lambda Function in Python
#python #lambda #function
In this tutorial, you will learn about
- Define user define function
- Lamda Function
- Convert Function to lambda function
- map() function and lambda function
- lambda function and if-else statement
Ask your question at …
In this tutorial, you will learn about
- Define user define function
- Lamda Function
- Convert Function to lambda function
- map() function and lambda function
- lambda function and if-else statement
Ask your question at …
👍3
#CODE_CHALLENGE_2 #FUNCTION #LIST_SLIC #STRING
1. Commercial bank of Ethiopia realized that their policy of using the first five letters of an employee’s last name as a user name isn’t ideal when they have multiple employees with the same last name.
Write a function called account_generator that takes two inputs, first_name and last_name and concatenates the first three letters of each and then returns the new account name.
2. They also wants to update how they generate temporary passwords for new employees.
Write a function called password_generator that takes two inputs, first_name and last_name and then concatenate the last three letters of each and returns them as a string.
Example: first_name = "Asibeh"
last_name = "Tenager"
expected output: user_name = AsiTen
temp_password = behger
Post your solution in the comment box
@epythonlab
1. Commercial bank of Ethiopia realized that their policy of using the first five letters of an employee’s last name as a user name isn’t ideal when they have multiple employees with the same last name.
Write a function called account_generator that takes two inputs, first_name and last_name and concatenates the first three letters of each and then returns the new account name.
2. They also wants to update how they generate temporary passwords for new employees.
Write a function called password_generator that takes two inputs, first_name and last_name and then concatenate the last three letters of each and returns them as a string.
Example: first_name = "Asibeh"
last_name = "Tenager"
expected output: user_name = AsiTen
temp_password = behger
Post your solution in the comment box
@epythonlab
👍8