Question
Which of the following function in python is used to
read keyboard input?Solution
Why this is correct:
input() is the built-in Python function that reads a line from standard input (keyboard) and returns it as a string (in Python 3). It’s the standard way to get user input. Why the others are wrong: 1.     cin is from C++ (std::cin), not Python. 2.     gets is a C function (unsafe and deprecated) — not Python. 3.     scanf is a C function (formatted input) — not Python.
If 'U' is the prime number 17, then find the fourth proportion of (U + 3), (U - 7) and (U + 5).
A stone worth Rs.5000 drops and breaks with weight in the ratio 1:3:6. The price of stone is directly proportional to square of its weight. Find the tot...
If the income of a family decrease by 6% and expenditure decrease by 8%, and its saving increases by 4%. Find the ratio of income and expenditure of th...
The ratio of males and females in a zoo is 4:5 respectively and the percentage of children among males and the percentage of children among females are ...
A sum of money is divided in the ratio of 5:9. If the smaller part is 405. Find the larger part.
Average run per wicket of a bowler is 11.5. In his next innings bowler took 6 wickets and conceded 48 runs, thereby he reduced his bowling average by 1....
Find the third proportion of √ 2, √ 7 and √ 21.  Â
A starts a business with Rs. 75,000 and B joins the business 5 months later with an investment of Rs. 80,000. After 1 year, they earn a profit of Rs. 4,...
Find the third proportional to 12 and 48?
In an office, the ratio of the number of males to number of females is 12:7. If 4 males joined the officeand 5 females left the office, then the ratio o...