in Education by
How many times is the word ‘ADITYA’ printed in the following statements? S=’RATHEESH BARATHI’ for ch in S[3:10]: print(‘ADITYA’) Select the correct answer from above options

1 Answer

0 votes
by
 
Best answer
The word will be printed 7 times. S[3:10] is a slice of 7 characters so the loop will run 7 times.

Related questions

0 votes
0 votes
0 votes
    State wheter the following statements are true or false. Use a regular font to highlight a word Select the correct answer from above options...
asked Dec 19, 2021 in Education by JackTerrance
0 votes
    What will be the output produced by following code statements? State reason(s). i. (17%5) == (17%5.0) ii. (87 // 5 ... int((87 / 5.0)) Select the correct answer from above options...
asked Dec 19, 2021 in Education by JackTerrance
0 votes
    What will be the output produced by following code statements? State reason(s). i. (17%5) == (17%5.0) ii. (87 // 5 ... int((87 / 5.0)) Select the correct answer from above options...
asked Dec 18, 2021 in Education by JackTerrance
0 votes
    Neeta has tied a very long document solar system she went to search the word stars in the document so that she ... find the word stars Select the correct answer from above options...
asked Dec 24, 2021 in Education by JackTerrance
0 votes
    Write and run (using appropriate calling program) a near procedure in 8086 assembly language that checks if the input ... AL register. Select the correct answer from above options...
asked Dec 31, 2021 in Education by JackTerrance
0 votes
    Plzz give me solution of ch 1 number system of it apps class 7 . Select the correct answer from above options...
asked Dec 13, 2021 in Education by JackTerrance
0 votes
    Analyse the given program segment and answer the following questions i) write the output of the program segment ii)how many times ... body of the loop gets execute for(int m=5 ; m...
asked Nov 29, 2021 in Education by JackTerrance
0 votes
    3.USING THE FOLLOWING STATEMENTS P : THE FOOD IS GOOD Q : THE SERVICE IS GOOD R : THE RATING IS 3 STARS ... GOOD FOOD AND GOOD SERVICE Select the correct answer from above options...
asked Dec 31, 2021 in Education by JackTerrance
0 votes
    How many relational operators are used in C? ( Answer in one word ) Select the correct answer from above options...
asked Dec 25, 2021 in Education by JackTerrance
0 votes
    answer the following one word: 1)To open virtual desktop. 2)To personalize Windows, according to the user's ... your hard disk. Select the correct answer from above options...
asked Dec 1, 2021 in Education by JackTerrance
0 votes
    You are reading a word document containing 10 pages. You reach the 3rd page of the document by pressing the Page ... pressed by you? Select the correct answer from above options...
asked Dec 19, 2021 in Education by JackTerrance
...