Question
What is the outpur of the following part of python
program? s="india" 1=0 for x in s: if(X!="i"): 1=1+1 else: pass print(1)Solution
- String "india" → characters = i, n, d, i, a
- Condition if(x != "i") counts all characters except "i" .
- "n" , "d" , "a" satisfy condition → count = 3.
- Output = 3 .
- Why Others are Wrong:
- 1: Wrong, only counts one.
- 5: Would mean all counted.
- 6: Impossible (string length is 5).
Which eminent children’s filmmaker has become the first Indian to be conferred with South Africa’s prestigious ‘Nelson Mandela Lifetime Achievemen...
Which of the following statements are correct about Swachh Bharat Mission - Urban?
A. It has an outlay of 1.41 Lakh crore and will be implemented...
The ‘flag-raising’ ceremony by the Prime Minister of India on Independence Day is held at which of the following places in Delhi?
Which of the following ‘Agribusiness Growth Centre’ is established under Gramya-2 Project in Pithoragarh Division?
Match the following:
      List-1 (Passes)                                               �...
______ observed the World Kabaddi Day, 2024 with 128 players creating a Guinness World Record.
Under Prime Minister’s Employment Generation Programme (PMEGP), the subsidy for General category applicants is ___ % of the project cost in rural are...
How many chambers are there in the heart of fishes?
Which of the following gas is used for making the Soda Water?
Who among the following returned to India in January 1915?