Fill in Order Details

  • Submit paper details for free using our simple order form

Make Payment Securely

  • Add funds to your account. There are no upfront payments. The writer will only be paid once you have approved your paper

Writing Process

  • The best qualified expert writer is assigned to work on your order
  • Your paper is written to standard and delivered as per your instructions

Download your paper

  • Download the completed paper from your online account or your email
  • You can request a plagiarism and quality report along with your paper

need help with paython with my assgiement 1

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.

  1. 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.
  2. 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.
  3. 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?
  4. 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:

    1. A statement, possibly very brief, that summarizes your completion of the assignment
    2. For each of your Python scripts or functions:
      1. A listing of the code
      2. Running examples that demonstrate that your code works correctly

WHAT OUR CURRENT CUSTOMERS SAY

  • Google
  • Sitejabber
  • Trustpilot
Zahraa S
Zahraa S
Absolutely spot on. I have had the best experience with Elite Academic Research and all my work have scored highly. Thank you for your professionalism and using expert writers with vast and outstanding knowledge in their fields. I highly recommend any day and time.
Stuart L
Stuart L
Thanks for keeping me sane for getting everything out of the way, I’ve been stuck working more than full time and balancing the rest but I’m glad you’ve been ensuring my school work is taken care of. I'll recommend Elite Academic Research to anyone who seeks quality academic help, thank you so much!
Mindi D
Mindi D
Brilliant writers and awesome support team. You can tell by the depth of research and the quality of work delivered that the writers care deeply about delivering that perfect grade.
Samuel Y
Samuel Y
I really appreciate the work all your amazing writers do to ensure that my papers are always delivered on time and always of the highest quality. I was at a crossroads last semester and I almost dropped out of school because of the many issues that were bombarding but I am glad a friend referred me to you guys. You came up big for me and continue to do so. I just wish I knew about your services earlier.
Cindy L
Cindy L
You can't fault the paper quality and speed of delivery. I have been using these guys for the past 3 years and I not even once have they ever failed me. They deliver properly researched papers way ahead of time. Each time I think I have had the best their professional writers surprise me with even better quality work. Elite Academic Research is a true Gem among essay writing companies.
Got an A and plagiarism percent was less than 10%! Thanks!

ORDER NOW


Consider Your Assignments Done

“All my friends and I are getting help from eliteacademicresearch. It’s every college student’s best kept secret!”

Jermaine Byrant
BSN

“I was apprehensive at first. But I must say it was a great experience and well worth the price. I got an A!”

Nicole Johnson
Finance & Economics

Our Top Experts

See Why Our Clients Hire Us Again And Again!


OVER

10.3k
Reviews

RATING
4.89/5
Average

YEARS
13
Mastery

Success Guarantee

When you order form the best, some of your greatest problems as a student are solved!

Reliable

Professional

Affordable

Quick

Using this writing service is legal and is not prohibited by any law, university or college policies. Services of Elite Academic Research are provided for research and study purposes only with the intent to help students improve their writing and academic experience. We do not condone or encourage cheating, academic dishonesty, or any form of plagiarism. Our original, plagiarism-free, zero-AI expert samples should only be used as references. It is your responsibility to cite any outside sources appropriately. This service will be useful for students looking for quick, reliable, and efficient online class-help on a variety of topics.