Questions: 5 290

Answers by our Experts: 5 288

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Define a function named "excludeItem" which take two parameters (item1 & item2) and both

are list. This function will create a separate list named "result" which only include items found

in both lists. The result list should not have duplicate value.

For example, given item1 = [1,2,3,4,2,1] while item2 = [2, 4, 4, 2]. This function will return a

result of [2,4]. Note that the output value is unique (no duplicate). The function must be able

to accept other parameters as well i.e. list of strings or mixture of strings and digits


Given an array A of N integers and two integers X and Y, find the number of integers in the array that are both less than or equal to X and divisible by Y.

Create a Python script which will accept a positive integer and will determine the input number if PERFECT, ABUNDANT, DEFICIENT.


I need the code to have an output.


Create a Python script which will accept two positive integers and will display the COMMON DIVISORS.


I need the code to have an output.


in,a hotel they are 'n' rooms for odd rooms the bulb is on for even room bulb is off..

on is represented as 1

off is represented as 0

n = 5

output

1 0 1 0 1

0 1 0 1 0

1 0 1 0 1

0 1 0 1 0

1 0 1 0 1

n = 6

output

1 0 1 0 1 0

0 1 0 1 0 1

1 0 1 0 1 0

0 1 0 1 0 1

1 0 1 0 1 0

0 1 0 1 0 1


  A
 B B
C   C
 B B
  A

can i get code for this please
hollow diamond using 2*n-1 rows and 2*n-1 columns

Sample Input 1



5

1

10

4

3

2

Sample Output 1

3

Sample Input 2

4

2

3

5

7

Sample Output 2

2

can i get exact code for this to print first prime number


arjun has two strings s and t he can do following operation at most once

You are given m*n matrix and k write a program to compute the area of submatrix

String encoding



A shifted to right by 1 b



If abc shifted to ijk according to input is yes other wise no




LATEST TUTORIALS
APPROVED BY CLIENTS