Questions: 5 831

Answers by our Experts: 5 728

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

anil is given a sentence as he tries to make a sentence special a sentence can be made special by swapping the character with high frequency with the character having low frequency in the sentence help anil by transforming the sentence into. a special sentence in python


anil is given a sentence as he tries to make a sentence special a sentence can be made special by swapping the character with high frequency with the character having low frequency in the sentence help anil by transforming the sentence into. a special sentence in python

given an n*n matrix write a program to print the sum of all biased elements an element biased if either or both of the following conditions is satisfied

each line should have 3 star characters the last line should have 0 spaces at the beginning each line has 2 extra space character when compared to its next line python program

You are given a sentence S with multiple words I it.write a program to print all the perpendicular words in s




With relavant comments Demonstrate use of Object Oriented Programming (OOP) principles, data structures and file

handling operations to carry out the following tasks:

a) Define a class named Person, with child classes named Daughter and Son who also have

have derived classes named GrandSon and GrandDaughter respectively. All child

classes have derived genetic features and skills from Person. Create 5 methods for

getting and setting genetic features, setting and getting skills and demonstrate the concept

of polymorphism.

b) Modify the answer in a) and show how the person features are captured in a file called

person.txt. Also create another method to read from the file person.csv and store the data

in a list called persondata. Clearly show how exceptions are handled in your program.


Draw a flowchart and construct a python program to accept a list of N numbers. The job is to determine if there exists an element in the list such that the sum of the elements on its left is equal to the sum of the elements on its right. If such element exists, then print the index of the element. If there are no such elements, then the sum is zero. [CO1] [L2] 

Sample workout for better understanding as given below

 Input: 6 // length of list 

[4, 3, 100, 2, 3, 2] //actual list 

Output: 2 (index of the chosen element) (Sum of elements at the left = Sum of elements at the Right = 7)


1.Assume hot dogs come in packages of 10, and hot dog buns come in packages of 8. Write a program that calculates the number of packages of hot dogs and the number of packages of hot dog buns needed for a cookout, with the minimum amount of leftovers. The program should ask the user for the number of people attending the cookout and the number of hot dogs each person will be given.


 The program should display the following details: 

• The minimum number of packages of hot dogs required 

• The minimum number of packages of hot dog buns required

 • The number of hot dogs that will be left over 

• The number of hot dog buns that will be left over


Note: Using set data structure to solve above programme


1.The colors red, blue, and yellow are known as the primary colors because they cannot be made by mixing other colors. When you mix two primary colors, you get a secondary color, as shown here: 

When you mix red and blue, you get purple.

When you mix red and yellow, you get orange. 

When you mix blue and yellow, you get green. 


Design a program that prompts the user to enter the names of two primary colors to mix. If the user enters anything other than “red,” “blue,” or “yellow,” the program should display an error message. Otherwise, the program should display the name of the secondary color that results.


Note: Using set data structure to solve above programme


Draw a flowchart and construct a python program to A taxi driver charges the bill as follows. On a fine day, Mr. Roy travels to his office by taxi. Write a Python program to accept the kilometers traveled by Mr. Roy and calculate his taxi bill.


first 10 km rs 15/km

next 90 km rs 8/km

after that rs 6/km