Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

can i get the solution for question 1 and 2 Implernent esch of the functions below. The start-11p nut cost aining the ptototype of each

can i get the solution for question 1 and 2
image text in transcribed
Implernent esch of the functions below. The start-11p nut cost aining the ptototype of each function is provided on Cagvas. You raust: - Download the start-up file called bu1 asartup-py from Chnvas and rename it to bu1.py - Do not import any Python modules. You are not allowed to use any Python modules for this assignmont. You mny only use Python's built-in data types and functions. - Replnce the line paes in esch function with your code that implements tho given fanction. You are not allowed to change the prototypes of the functions. You may, however, introduce alditional functions or variables if needed. - Use pasa statement after commenting oat your incomplete code to avoid unnocestary failures on unrelated test cases, if you are unable to complete a function. - Uplood your complete hu1. py to the correct assignmeat area on Canvas by 11:59pma on the due dateIf you upload your file to the wrong assigament area or if you fail to submit it by 11:59pm on the due date, it will not be graded and you will receive an autotnatic Zero on the assignment. In the description below, severnl exnmples of use cases are provided for each function. These exatngles ase simply the typical use casos to clarify the specificatioa of the function aad is not meant to be a comprehensive tost cases wo will be using. You are strongly encouraged to test yout code with these echmples and further with your onn test cases belore you subtnit. Further testing snd debugging is your respansibility. 1. 1int x(n,11nt1,1 tnt2) It taken three parametern, B,1 ist 1,1 ist2, and returns Trae if n is exclusively in 11 st 1 or 1 ist? otberwise, it returns False. In other words, it returns True if a is in only one of the two lists and feturns Falee if a is in both or in noce of the lists. False 2. dict_extend (dict1, dicv2) It takes two dietionaries as parametery, dict 1 and diet 2 and returns a new dictionary that combines dicti and dict?, collecting the values of comnmon keys in a list. 3. canel cane (var name) It takes a string as a pnrumeter, var inane, that represents a variable name with underscores separating words and returnas the vnriable nnme in camel case. If yar.nase consists only of underscores, then an empty string ilhould be retarnod

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning Databases With PostgreSQL From Novice To Professional

Authors: Richard Stones, Neil Matthew

2nd Edition

1590594789, 978-1590594780

More Books

Students also viewed these Databases questions

Question

3. Identify the methods used within each of the three approaches.

Answered: 1 week ago