please create a python script for the practice excersie with an explanation. I provided my starter code and my desired outcome in the images.
In that file implement the functions listed below by following the guidelines given. Assume the user enters the full name as "First Last". (No need to validate input)
generate_EmailID: This function takes the user’s full name in the form “First Last” and creates and returns the email id by using these rules:
The email id is all lower case.
email id is of the form “last.first@fhs.edu”. e.g. For "John Doe" it will be "doe.john@fhs.edu".
See sample runs above.
generate_Password: This function takes the user's full name and generates and returns a temporary password by using these rules. The temporary password
starts with the first 2 letters of the first name, made lower case.
followed by a number which is the product of the lengths of the first and last name
followed by a single random letter from these special characters: '!', '@', '#', '$', '%', '*'
followed by the last 2 letters of the last name, made upper case.
So for "John Doe" possible passwords generated could be: "jo12%OE" or "jo12$OE"
See sample runs above.
The starter file has a global list of the special characters SPECIAL_CHARS and an import statement which you will find useful.
Trending nowThis is a popular solution!
Step by stepSolved in 4 steps with 2 images
- Please Program in python and leave comments to help explain here is the google drive with the Test.xlsm file: https://drive.google.com/drive/folders/16utzb5_h7yMCN8_13E_JqasfcpykZOYr?usp=sharing The objective is to create a code in Python that can extract the columns highlighted in blue and output them to a .txt file. The code should be able to generate the text file with the columns that are highlighted in blue and store them on a seperate folder. Below shows how the Test.xlsm file looks like as well as how the text file should look like when the code extracts and outputs it. The attached images is how we want to format the text file when/after extracting the columns highlighted in blue. The code should name the output text file according to the sheet name " Correct-L.txt " and its header should contain " Band Group Number Time " just so we know where it begins or when the next column is.arrow_forwardAt least two functions and a main() must be included in the application. At the very least, the functions must be able to communicate with one other. In addition, each function must return a value. To demonstrate the flow of data between the functions, you should write your code, test it, and create drawings to go along with your code.arrow_forwardWarning ⚠️ Don't post AI generated answer or plagiarised answer. If I see these things I'll give you multiple downvotes and will report immediately.arrow_forward
- Instructions: For each Exercise below, write your code in an IDE and run your code within the IDE as well. Once you have satisfied the Exercise requirements, paste your code below under the corresponding Exercise. Exercise 1: The Hogwarts School of Witchcraft and Wizardry welcomes you! First-year students must go through the annual Sorting Ceremony. The Sorting Hat is a talking hat at Hogwarts that magically determines which of the four school Houses each new student belongs most to: Gryffindor ● Hufflepuff ● Ravenclaw ● Slytherin Your task is the following: Please Write a sortinghat.cpp program that asks the user some questions and places them into one of the four Houses based on their answers! ●arrow_forwardYou are working with a team creating a grocery shopping app. The app keeps the information of the items to buy in the list grocery list, and the items that were purchased in purchased list. You need to create a function that returns the items that were purchased, but that were not in the grocery list. For example, if the grocery list is milk, eggs, bacon, and flour; and we purchased milk, chocolate, and muffins, the function should return a list with chocolate and muffins. Drag and drop the expressions needed to implement the required function. def get_extra_items(grocery_list, purchased_list): list3 [] for i in range( ) : if not in list3.append( return list3 len(grocery_list) grocery_list grocery_list[i] purchased_list[i] purchased_list len(purchased_list)arrow_forwardin python create a function that raises a keyerror if the key is duplicatedarrow_forward
- Write a regular expression that matches the day of year such as "1-1-2018" or "7/4/1776". Dates like "9-31-1955", "3/29-2018", and"5-28/1956" should not be matched. You do not have to worry about leap years (i.e. assume February has 28 days every time). Edit View Insert Format Tools Table 12pt v Paragraph v A To 田 画 D O wordsarrow_forwardWhy did you dismiss my question, If you are unsure about the answer, leave it to others. However, don't give a plagiarized or AI created response. Sure, I'll take serious action.arrow_forward0110 earlier_name Complete the following function according to its docstring description. 1 def earlier_name(name1: str, name2: str) -> str: 2. *"Return the name, name1 or name2, that comes first alphabetically. >>> earlier_name ('Jen', 'Paul') 4 'Jen' >> earlier_name('Colin', 'Colin') 7 "Colin' Submit History LOarrow_forward
- Ex2. Write down two functions: transfer and receive from a bank account The settings will be transferred to two users of the bank. Must be a user Presented as a struct and must have an account attribute. That is, the program should ask you to enter the bank account (string type) and the name of the person to whom you are transferring the amount, as well as the amount of the money. If the amount is more than $ 1000, the program must print a notification to enter a fee - 10% of the amount. After entering 10% of the amount, print on the screen that the amount has been transferred.arrow_forwardPLEASE COMMENT CODE In a python program, create a new file and call it “ tracking”. Write to it four lines each contains information about an order like this: 1-00654-021 Dell charger Toronto-WEST 99-49-ZAD011-76540-022 ASUS battery Milton-EAST 34-56-CBH561-09239-026 HP HD Scarborough-NORTH 12-98-AZC451-12349-029 Mac FD North York-LAWRENCE 34-49-ZWL01Add the file two more lines: 1-34567-055 Lenovo SSD Milton-ON 34-09-MT04 1-90432-091 Lenovo battery Oakville-ON 78-KL98 Define a function that searches for a brand (e.g. Dell, ASUS, etc.). Test the function in your program.arrow_forwardCreate a Raptor flowchart and name the file Software Discountslname where Iname is YOUR last name. Here is the problem to solve: A software company sells a package that retails for $99. Quantity discounts are given according to the following table: Quantity Discount 10-19 20% 20-99 30% 100 or more 40% Use the flowchart on the next page as a guide. You will need to fill in the conditions or Boolean expressions in the selection structures, using the variables that are indicated in the model on the next page. Do not add any variables. Fill in the missing assignment statements in the selection structures. Last, fill in the three assignment boxes to calculate: 1) the amount the customer owes before the discount (quantity times the price of one software package) 2) the amount of the discount (you've already calculated the discountRate in the selection structure) and 3) the amount the customer owes after the discount is applied Output the information to the user. Test your program 4 times,…arrow_forward
- Computer Networking: A Top-Down Approach (7th Edi...Computer EngineeringISBN:9780133594140Author:James Kurose, Keith RossPublisher:PEARSONComputer Organization and Design MIPS Edition, Fi...Computer EngineeringISBN:9780124077263Author:David A. Patterson, John L. HennessyPublisher:Elsevier ScienceNetwork+ Guide to Networks (MindTap Course List)Computer EngineeringISBN:9781337569330Author:Jill West, Tamara Dean, Jean AndrewsPublisher:Cengage Learning
- Concepts of Database ManagementComputer EngineeringISBN:9781337093422Author:Joy L. Starks, Philip J. Pratt, Mary Z. LastPublisher:Cengage LearningPrelude to ProgrammingComputer EngineeringISBN:9780133750423Author:VENIT, StewartPublisher:Pearson EducationSc Business Data Communications and Networking, T...Computer EngineeringISBN:9781119368830Author:FITZGERALDPublisher:WILEY