Answer:
class Example:
def __init__(self, val):
self.val = val
def __gt__(self, other):
return self.val > other.val
def __sub__(self,other):
return abs(len(self.val) - len(other.val))
def main():
obj1 = Example('this is a string')
obj2 = Example('this is another one')
print(obj1 > obj2)
print(obj1 - obj2)
main()
\color{red}\underline{Output:}
Answer:
Output can be 0 or 1 or 2.
Explanation:
As we are initializing the value with 2 so at most it will increment to 2 times means value will be 2.
when main thread is printing the c , Increase thread might be started or might not be started
so output can be 0 or 1 or 2
Answer:
Interface design
Explanation:
INTERFACE DESIGN are design that are carried out on either a computer or a mobile phone or other devices that will suit the users by designing the style of the devices and how the device will look like which will inturn enable the user to easily carried out or performed any tasks they are want to perform with easy and without any lapses which is why it is important for INTERFACE DESIGN to be design with the right tools that the user can easily understand in order to access and perform their tasks effectively.
Answer:
Communication satellites are in geosynchronous orbit as, orbits are above the equator directly in the earth where the eccentricity is zero in the orbit and the objects which are geostationary are visible motionless in the sky of the earth. So, that is why, the orbit contain artificial satellite and the satellite distance are varying by the longitude.