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
Types of Linked List
A sequence of data elements connected through links is called a linked list (LL). The elements of a linked list are nodes containing data and a reference to the next node in the list. In a linked list, the elements are stored in a non-contiguous manner and the linear order in maintained by means of a pointer associated with each node in the list which is used to point to the subsequent node in the list.
Linked List
When a set of items is organized sequentially, it is termed as list. Linked list is a list whose order is given by links from one item to the next. It contains a link to the structure containing the next item so we can say that it is a completely different way to represent a list. In linked list, each structure of the list is known as node and it consists of two fields (one for containing the item and other one is for containing the next item address).
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
----------------------------------------------------------------------------
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
This is a popular solution!
Step by step
Solved in 4 steps with 2 images