in Technology by

What is the output of print str[2:5] if str = 'Hello World!'?

1 Answer

0 votes
by

It will print characters starting from 3rd to 5th. Output would be llo.

Related questions

0 votes
    What will be the output of print str[2:5] if str=’hello world!? Select the correct answer from above options...
asked Dec 25, 2021 in Education by JackTerrance
0 votes
    What is the output of print str[2:] if str = 'Hello World!'?...
asked Nov 23, 2020 in Technology by JackTerrance
0 votes
    What is the output of print str + "TEST" if str = 'Hello World!'?...
asked Nov 23, 2020 in Technology by JackTerrance
0 votes
    What is the output of print str[0] if str = 'Hello World!'?...
asked Nov 23, 2020 in Technology by JackTerrance
0 votes
    What is the output of print str if str = 'Hello World!'?...
asked Nov 23, 2020 in Technology by JackTerrance
0 votes
    What will be the output of the following Python code? class tester: def __init__(self, id): self.id = str(id) id="224" >>>temp ... >>>print(temp.id) a) 12 b) 224 c) None d) Error...
asked Jan 2, 2023 in Technology by JackTerrance
0 votes
    What will be the output of the following Python code? class tester: def __init__(self, id): self.id = str(id) id="224" >>>temp ... >>>print(temp.id) a) 12 b) 224 c) None d) Error...
asked Jan 2, 2023 in Technology by JackTerrance
0 votes
    . 1. Find the output of the following programs. (a) 10 LET AS = “HELLO” 20 LET BS = “FRIENDS” 30 PRINT AS:BS 40 END Select the correct answer from above options...
asked Nov 29, 2021 in Education by JackTerrance
0 votes
    following Python Write the output for the Codes i A : 41:100, 2:200, 3: 300, 4:400,5:5003 Print A items ( ... Keys () Print A values ) Select the correct answer from above options...
asked Dec 21, 2021 in Education by JackTerrance
0 votes
    What will be the output of the following Python function? len(["hello",2, 4, 6]) a) Error b) 6 c) 4 d) 3...
asked Jan 2, 2023 in Technology by JackTerrance
0 votes
    What is the output of print tuple + tinytuple if tuple = ( 'abcd', 786 , 2.23, 'john', 70.2 ) and tinytuple = (123, 'john')?...
asked Nov 24, 2020 in Technology by JackTerrance
0 votes
    What is the output of print tinytuple * 2 if tinytuple = (123, 'john')?...
asked Nov 24, 2020 in Technology by JackTerrance
0 votes
    What is the output of print tuple[2:] if tuple = ( 'abcd', 786 , 2.23, 'john', 70.2 )?...
asked Nov 24, 2020 in Technology by JackTerrance
0 votes
    What is the output of print tuple[1:3] if tuple = ( 'abcd', 786 , 2.23, 'john', 70.2 )?...
asked Nov 24, 2020 in Technology by JackTerrance
0 votes
    What is the output of print tuple[0] if tuple = ( 'abcd', 786 , 2.23, 'john', 70.2 )?...
asked Nov 23, 2020 in Technology by JackTerrance
...