C's share is Rs. 65.
C=150
C=150
Please login to post an answer.
Steps to solve this.
1. open FILE1 in read mode
2. read content by using read()
3 split content by using
so that you can get lines
4 split lines by split(' ') so that you can get words
5 repeat above 4 lines with file FILE2
6 iterate words list and create dictionary word and frequency as key values.
skip the value if it is found in file2 key words.
7 sort dict by using x= list(sorted(wordsarr.items(),wordsarr.get, reverse=true)
so that we can get sorted dict in desc order.
8 return top 100 words by using print(x[:101])
There is a method which is built-in to show the instances of an object that consists of many classes by providing a tuple in a table instead of individual classes. The method is given as isinstance(obj,cls) and in more details given as:
isinstance(obj, (class1, class2, ...)) that is used to check about the object’s presence in one of the classes. The built in types can also have many formats of the same function like isinstance(obj, str) or isinstance(obj, (int, long, float, complex)).
It is not preferred to use the class instead user-defined classes are made that allow easy object-oriented style to define the behavior of the object’s class. These perform different thing that is based on the class. The function differs from one class to another class. To find out the object of the particular class the following program is used:
def search(obj):
if isinstance(obj, box):
# This is the code that is given for the box and write the program in the object
elif isinstance(obj, Document):
# This is the code that searches the document and writes the values in it
elif
obj.search()
#This is the function used to search the object’s class.
Spot instances are a type of Amazon EC2 instance that allows you to bid on unused computing capacity at potentially lower prices than on-demand instances. They can be interrupted by AWS with little notice if the capacity is needed for on-demand instances.
Amazon Route 53 is a scalable and highly available Domain Name System (DNS) web service that translates domain names into IP addresses, helping to route end users to Internet applications.
AWS, or Amazon Web Services, is a comprehensive cloud computing platform provided by Amazon that offers a wide range of services, including computing power, storage, and databases, as well as machine learning, analytics, and networking, allowing businesses to scale and grow without the need for physical infrastructure.
Availability Zones are isolated locations within a Region that provide high availability and fault tolerance. A Region is a geographical area that contains multiple Availability Zones, allowing for resource distribution and redundancy across different physical locations.
A VPC (Virtual Private Cloud) is a virtual network dedicated to your AWS account, allowing you to launch AWS resources in a logically isolated environment.