need help with paython with my assgiement 1 #1 Essay Answers
need help with paython with my assgiement 1 #1 Essay Answers – #1 Essay Answers
Overview
You will write two functions that practice the use of loops and lists, including 2-dimensional lists (lists of lists). You will also study the use of the dictionary type and use it in a simple word count exercise.
Python Functions and Scripts
Write and test Python functions for each of the following. When writing a function, include a docstring.
- Implement the function pairSum that takes as parameters a list of distinct integers and a target value n and prints the indices of all pairs of values in the list that sum up to n. If there are no pairs that sum up to n, the function should not print anything. Note that the function does not duplicate pairs of indices.
- Implement the function unique that takes as a parameter a two-dimensional list and returns a one-dimensional list containing all the unique entries in the list. The entries in the list returned do not need to be ordered in any particular way. For example, in the list [[1, 0, 1], [0, 1, 0]] there are only two unique values (0 and 1) so the function would return the list [0, 1] (or the list [1, 0] — both are valid). The list passed as a parameter should not be altered by the function.
- Study the count_word function in the table.py file and use it in another function (called display_counts) to print your selection of word counts from a text file (e.g. pride.txt or tale.txt). The function display_counts should take one parameter, a string that represents the name of the file. You may choose what word counts to display (e.g. words longer than 10 characters, or a specific list of words). Does your display show meaningful differences between the Jane Austin novel and the Charles Dickens novel?
- A statement, possibly very brief, that summarizes your completion of the assignment
- For each of your Python scripts or functions:
- A listing of the code
- Running examples that demonstrate that your code works correctly
Sample Runs
Sample runs:
>>> pairSum([3, 6, 8, 10, 11], 14) 0 4 1 2 >>> pairSum([3, 9, 12], 44) >>> pairSum([], 3) >>> >>> unique([[1, 5, 2, 1], [1, 4, 3, 5], [], [5]]) [1, 5, 2, 4, 3] >>>
Note that the display of the last function is up to you!
Deliverables
Create a text file called assn7.txt that contains the following:
We have a team of Assignment experts who are the leading assignment help providers in the worldwide platform. We have university assignment expert who help the students in the best possible manner. At Google, there are many service providers as well that might not be reliable and do not guarantee money-back. But our assignment help service company is legal and reliable and provides plagiarism-free work without any cheating. Each company has its formats of submitting the assignments and placing the order. The assignment's subject, topic, and deadline need to be provided to the service providers. Based on the following documents, the price is quoted and approved. The experts are often called academic writers who all possess extensive knowledge and experts in the field. The services of academic writings include custom help in essay writing, term paper, coursework, homework assignments, research writings, dissertation, and many more.

Step-by-step solutions. Top grades guaranteed.