Epython Lab
6.76K subscribers
633 photos
30 videos
103 files
1.16K links
Welcome to Epython Lab, where you can get resources to learn, one-on-one trainings on machine learning, business analytics, and Python, and solutions for business problems.

Buy ads: https://telega.io/c/epythonlab
Download Telegram
#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
#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?
#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
👍8