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).
To create the school infrastructure in the state a campaign has been launched by the government named as ‘Mana Ooru Mana Badi”. Name the state?
What was the cost of Asia’s largest Sewage Treatment Plant (STP) inaugurated in Okhla, Delhi?
Recently Standard Chartered Bank has announced the launch of a co-branded credit card with which of the following firm?
Regarding the U.S. legislation for the Indian Ocean Region, which statements are accurate?
1. The strategy includes provisions for promoting coop...
With reference to Kavach, consider the following statements:
1. It is an automatic protection system in development since 2012, under the name Tr...
Which two high-ranking officials attended the closing ceremony of the NOMADIC ELEPHANT exercise?
The Aparajita Women and Child (West Bengal Criminal Laws Amendment) Bill, 2024 mandates that investigations into rape cases must be completed within how...
What was India’s measles and rubella vaccine coverage percentage as of the latest campaign update in 2025?
Who among the following won the DV Kapur Foundation Award in Category 1 for young innovators?
Which country is going to host Club World Cup in February 2023?