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.
Cost of 10 shirts and 12 pants is Rs. 7,800 and the cost of 8 shirts and 11 pants is Rs. 6,450. Find the total cost of 5 shirts and 4 pants.
A company produces two types of products, A and B. The production cost per unit for product A is ₹600 and for product B is ₹800. The company produce...
A trader marks up his goods by 40% and offers a discount of 10%. If the cost price of the goods is ₹300, find his actual profit percentage.
The shopkeeper purchased an article for Rs. "X." He marked the article __________% above its cost price and allowed a ________% discount on the marked p...
A man purchase some lemons @ 1 lemon for Rs. 2 and same number of lemons @ 2 lemons for Rs. 1 and he sells all of them @ 4 lemons for Rs. 3. Find his pr...
A bought an article at 12.5% less of the marked price and sold it at 5% more than the marked price. Find the profit earned by him.
A shopkeeper planned to sell 200 shirts each priced at Rs 2,240 in a particular year. Each shirt, if it had been sold at the mentioned price would have...
- A man sold a mobile phone for Rs. 825 and made a 25% profit. If the mobile was marked at Rs. 950, how much discount did he give to earn a profit of 15%?
Two friends Shyam and Ram, Shyam sold an item after allowing two successive discounts of 20% and 15%, While Ram sold the same item after two successive ...
- A dairy owner buys 20 liters of milk at Rs. 50 per liter. While selling, he uses a faulty measure that shows 1020 milliliters instead of 1000 milliliters b...