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

python 5 easy programs

A. Write a function that:

1. Takes two arguments and returns the product of the arguments. The return value should be of type integer.

2. Takes two arguments and returns the quotient of the arguments. The return value should be of type float.

3. Takes one argument and squares the argument. It then uses the two values and returns the product of the two arguments.(Reuse function in 1.)

4. Takes one argument and prints the argument. Use this function to return the values in all previous 3 definitions above.

B. Write a Python program to check the validity of password input by users:

Passwords MUST contain the following:

At least 1 letter between [a-z] and 1 letter between [A-Z].
At least 1 number between [0-9].
At least 1 character from [$#@].
Minimum length 6 characters.
Maximum length 16 characters.

C. Function Name: comboLock

Parameters:

num1 – a positive integer representing the first digit in the combination

num2 – a positive integer representing the second digit in the combination

num3 – a positive integer representing the third digit in the combination

num4 – a positive integer representing the fourth digit in the combination

num5 – a positive integer representing the fifth digit in the combination

Description:

You own a combination lock that only opens when presented with the correct sequence of odd and even numbers that are less than 10. Write a function that takes in 5 integers. Check whether they are in this order: odd, even, odd, even, odd. If they are in the correct order and all below 10, then print the string “You opened the lock.” Otherwise, print “You are locked out.”

Enclose function in a while loop and ask user for parameters using input().

Test Cases:

>>>comboLock(9, 2, 5, 4, 1)

You opened the lock.

>>>comboLock(1, 8, 3, 6, 8)

“You are locked out.”

>>>comboLock(2, 2, 5, 6, 4)

“You are locked out.”

>>>comboLock(9, 8, 7, 8, 10)

“You are locked out.”

D.

Weight Lifting

  • Make a dictionary where the keys are the names of weight lifting exercises, and the values are the number of times you did that exercise.(At least 5 exercises,be creative. Nobody should have same values)
    • Use a for loop to print out a series of statements such as “I did 10 bench presses”.
    • Modify one of the values in your dictionary, to represent doing more of that exercise.
      • Use a for loop to print out a series of statements such as “I did 10 bench presses”.
    • Add a new key-value pair to your dictionary.
        • Use a for loop to print out a series of statements such as “I did 10 bench presses”.
    • Remove one of the key-value pairs from your dictionary.
        • Use a for loop to print out a series of statements such as “I did 10 bench presses”.
  • Use a function to do all of the looping and printing in this problem.
  • E. Follow the instructions below:1. Open a file and write the following to a file:

    • Your Name
    • INSS 250
    • Final

    Each should be on a new line.2. With the file open, take input from a user and append it to the file. It can be any input but must be at least 10 words. I suggest do it in a loop. 3. Now as we did in class, use the file as input to count the number of letters in the file and print out a summary. All of this is one program. You will submit the python file(aka ‘your_name_final.py’). Use this naming convention.Research file opening and closing, but to get you started:The code looks like this:

      with open('file_to_save.txt', 'w') as open_file:_x000D_
        open_file.write('A string to write')
    open_file.close()

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.