We can work on Coding Python

1.Write a Python program to check whether a list contains a sublist.

Example:

a = [2,4,3,5,7] , b = [4,3]

Expected output: b is a sublist of a.

2.Write a Python program to reverse a tuple.

3.Write a Python program to find the repeated items of a tuple.

  1. Write your own Python function “Sorting()” to sort any given sequence of numbers in ascending order. For example, if a user enters: 3, 13, 5, 9, 100, 32, 34, 5. Your function should output: 3, 5, 5, 9, 13, 32, 34, 100.
  2. A complex number is a number of the form a + bi, whereby a and b are constants, and i is a special value that is defined as the square root of -1. Of course, you never try to actually calculate what the square root of -1 is, as that gives a runtime error; in complex numbers, you always let the i remain. For instance, the complex number 3 + 2i cannot be simplified any further. Addition of two complex numbers a + bi and c + di is defined as (a + c) + (b + d)i. Represent a complex number as a tuple of two numeric values, and create a function that calculates the addition of two complex numbers.

Create a list of restaurants (using tuples) near GWU:

• Restaurant name

• Review score

• Price (Using numbers such as 10, 20, 30, or $.)

Sort the restaurants based on the following rule:

• Review score (descending order) #1 Point

• Price (ascending order) # 1 Point

Sample Solution

The United States is home to probably the most famous and productive sequential executioners ever. Names, for example, Ted Bundy, Gary Ridgeway, and the Zodiac Killer have become easily recognized names because of the horrendous idea of their wrongdoings. One of the most productive sequential executioners in American history is John Wayne Gacy. Nicknamed the Killer Clown in light of his calling, Gacy assaulted and killed at any rate 33 adolescent young men and youngsters somewhere in the range of 1972 and 1978, which is one of the most noteworthy realized casualty tallies. Gacy’s story has become so notable that his wrongdoings have been included in mainstream society and TV appears, for example, American Horror Story: Hotel and Criminal Minds. Scientific science has, and keeps on playing, a significant job in the explaining of the case and ID of the people in question. John Wayne Gacy’s history of sexual and psychological mistreatment was instrumental in arousing agent’s curiosity of him as a suspect. John Wayne Gacy was conceived on March 17, 1942, in Chicago, Illinois. Being the main child out of three youngsters, Gacy had a stressed relationship with his dad, who drank vigorously and was frequently damaging towards the whole family (Sullivan and Maiken 48). In 1949, a contractual worker, who was a family companion, would caress Gacy during rides in his truck; in any case, Gacy never uncovered these experiences to his folks inspired by a paranoid fear of requital from his dad (Foreman 54). His dad’s mental maltreatment proceeded into his young grown-up years, and Gacy moved to Las Vegas where he worked quickly in the rescue vehicle administration before turning into a morgue specialist (Sullivan and Maiken 50). As a morgue specialist, Gacy was intensely engaged with the preserving procedure and conceded that one night, he moved into the casket of an expired high school kid and touched the body (Cahill and Ewing 46). Stunned at himself, Gacy comes back to Chicago to live with his family and graduates from Northwestern Business College in 1963, and acknowledges an administration learner position with Nunn-Bush Shoe Company. In 1964, Gacy is moved to Springfield and meets his future spouse, Marlynn Myers. In Springfield, Gacy has his subsequent gay experience when a colleague unsteadily performed oral sex on him (London 11:7). Gacy moves to Waterloo, Iowa, and starts a family with Myers. In any case, after consistently undermining his better half with whores, Gacy submits his originally known rape in 1967 upon Donald Vorhees. In the coming months, Gacy explicitly mishandles a few different young people and is captured and accused of oral homosexuality (Sullivan and Maiken 60). On December 3, 1968, Gacy is indicted and condemned to ten years at the Anamosa State Penitentiary. Gacy turns into a model prisoner at Anamosa and is conceded parole in June of 1970, a negligible year and a half after his condemning. He had to migrate to Chicago and live with his mom and watch a 10:00PM time limit. Not exactly a year later, Gacy is accused again of explicitly attacking an adolescent kid yet the young didn’t show up in court, so the charges were dropped. Gacy was known by numerous individuals in his locale to be an eager volunteer and being dynamic in network legislative issues. His job as “Pogo the Clown” the jokester started in 1975 when Gacy joined a neighborhood “Jaunty Joker” comedian club that routinely performed at raising money occasions. On January 3, 1972, Gacy submits his first homicide of Timothy McCoy, a 16-year old kid heading out from Michigan to Omaha. Asserting that McCoy went into his room using a kitchen blade, Gacy gets into a physical fight with McCoy before cutting him over and again in the chest. In the wake of understanding that McCoy had absentmindedly strolled into the stay with the blade while attempting to get ready breakfast, Gacy covers the body in his creep space. Gacy conceded in the meetings following his capture that executing McCoy gave him a “mind-desensitizing climax”, expressing that this homicide was the point at which he “understood passing was a definitive rush” (Cahill and Ewing 349). Just about 2 years after the fact, Gacy submits his second homicide of a unidentified young person. Gacy choked the kid before stuffing the body in his storeroom before covering him (Cahill 349). In 1975, Gacy’s business was developing rapidly and his hunger for youngsters developed with it. Gacy frequently tricked youngsters under his work to his home, persuading them to place themselves in binds, and assaulting and tormenting them before choking them (Cahill 169-170). The greater part of Gacy’s homicides occurred somewhere in the range of 1976 and 1978, the first of this time occurring in April 1976. A significant number of the adolescents that were killed during this time were covered in a slither space under Gacy’s home. For the rest of the homicides, Gacy confessed to losing five bodies the I-55 extension into the Des Plaines River; be that as it may, just four of the bodies were ever recouped (Linedecker 152). In December 1978, Gacy meets Robert Jerome Piest, a 15-year old kid working at a drug store and extends to him an employment opportunity at Gacy’s firm. Piest educates his mom regarding this and neglects to restore that night. The Piest family records a missing individual’s report and the drug specialist advises police that Gacy would in all likelihood be the man that Jerome addressed about an occupation. When addressed by the police, Gacy denied any association in Piest’s vanishing. Be that as it may, the police were not persuaded, and Gacy’s history of sexual maltreatment and battery provoked the police to look through his home. Among the things found at Gacy’s home were a 1975 secondary school class ring with the initials J.A.S., numerous driver’s licenses, binds, garments that was unreasonably little for Gacy, and a receipt for the drug store that Piest had worked at. Through the span of the following hardly any days, agents got numerous calls and tips about Gacy’s rapes and the secretive vanishings of Gacy’s representatives. The class ring was in the long run followed back to John A. Szyc, one of Gacy’s casualties in 1977. Futhermore, after looking at Gacy’s vehicle, examiners found a little bunch of filaments taking after human hair, which were sent to the labs for additional investigation. That equivalent night, search hounds were utilized to identify any hint of Piest in Gacy’s vehicle, and one of the mutts demonstrated that Piest had, truth be told, been available in the vehicle. On December 20, 1977, under the pressure of consistent police observation and examination, Gacy admits to more than 30 killings and illuminates his attorney and companion where the bodies were covered, both in the slither space and the stream. 26 casualties were found in the slither space and 4 in the waterway. Gacy is captured, indicted for 33 homicides, and condemned to death by deadly infusion. He endeavored a craziness request yet was denied, and was executed on May 10, 1994.>

Is this question part of your Assignment?

We can help

Our aim is to help you get A+ grades on your Coursework.

We handle assignments in a multiplicity of subject areas including Admission Essays, General Essays, Case Studies, Coursework, Dissertations, Editing, Research Papers, and Research proposals

Header Button Label: Get Started NowGet Started Header Button Label: View writing samplesView writing samples