Question
What is the purpose of the "if __name__ == '__main__':"
statement in a Python script?Solution
It checks if the script is being run as the main program.
Determine the time taken by a pipe R to empty a water tank.
Statement I: Pipe P and pipe Q can fill a water tank in 6 hou...
What is the exact average of x, 53, 93, 24, q and y?
I. x is five more than y.
II. y is six less than q.
Find the rate of interest per annum on a sum of money invested? Statement I: The difference between the compound interest and simple interest at the end...
What is three digit number having each digit different from the other?
I. Each of the digits of the given number is a multiple of 2.
...
Which one of the following is correct in respect of the statement given below?
Statement 1: 210Β is the smallest natural number having...
In how many days 6 girls and 4 boys together can complete a work?
A. 18 girls together can complete a work in 10 days.
...
How long did it take Narayan to drive to his home?
Statement I : If he had driven twice as fast she would have taken 30 minutes.
Stateme...
Find the sum?
Statement I : The difference between Compound Interest and Simple Interest for 2 years is 420.
Statement II : If the Compo...
What is the speed of boy in still water?
Statement I : The speed of man in still water is four times the speed of the stream.
Statement...
A man invested a sum of Rs 25,000. He invested some part at 5 % p.a. and remaining at 5.5% p.a. How much money did he invest at 5 % p.a.?
Statem...