Basic list structure, python code. Can you explain this while using python 3.10. I would really appreciate it if you can explain how to do it aswell. For this assignment, write a Python script to allow users to enter the following string values: employeeName, employeeSSN*, employeePhone, employeeEmail, and employeeSalary. *(employeeSSN = Employee Social Security Number. For example, 123121234) Once you have entered your values, you should display it in the following format: ---------------------------- Mike Smith ----------------------------- SSN: 123123123 Phone: (111)222-3333 Email: mike@gmail.com Salary: $6000

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter7: Arrays
Section7.5: Case Studies
Problem 4E: (List maintenance) a. Write a complete C++ program that can be used to update an ordered list of...
icon
Related questions
icon
Concept explainers
Question

Basic list structure, python code. Can you explain this while using python 3.10. I would really appreciate it if you can explain how to do it aswell.

For this assignment, write a Python script to allow users to enter the following string values: employeeName, employeeSSN*, employeePhone, employeeEmail, and employeeSalary.

*(employeeSSN = Employee Social Security Number. For example, 123121234)

Once you have entered your values, you should display it in the following format:

---------------------------- Mike Smith -----------------------------

SSN: 123123123

Phone: (111)222-3333

Email: mike@gmail.com

Salary: $6000

----------------------------------------------------------------------------

Expert Solution
Explanation

1. Taking a variable employee_name and asking the user to enter the employee name input() is used to take input from the user in string format.

2. Taking a variable employee_ssn and asking the user to enter the employee ssn number input() is used to take input from the user in string format.

3. Taking a variable employee_phone  and asking the user to enter the employee phone number input() is used to take input from the user in string format.

4. Taking a variable employee_email and asking the user to enter the employee email id input() is used to take input from the user in string format.

5. Taking a variable employee_salary and asking the user to enter the employee salary input() is used to take input from the user in string format.

6. Creating a list and entering all the inputs taken by user in the list

7. Printing the list by using the indexes.

trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Types of Linked List
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr