in Education by
What will be the output of print str[2:5] if str=’hello world!? Select the correct answer from above options

1 Answer

0 votes
by
 
Best answer
Explanation: It will print characters starting from 3rd to 5th. Output would be llo. … It will print characters starting from 3rd character. hope it is helpful for u

Related questions

0 votes
    What is the output of print str[2:5] if str = 'Hello World!'?...
asked Nov 23, 2020 in Technology 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
    . 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
    Consider a list2 with values 70,60,50. What will be the output statements considering that the above object has ... print(list2*3) Select the correct answer from above options...
asked Dec 29, 2021 in Education 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
    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
    In Java, what will be the output of the following code and how? double x=2.9,y=2.5; (SOP is abbreviated form ... x),y)); Explain how Select the correct answer from above options...
asked Nov 28, 2021 in Education by JackTerrance
0 votes
    >>> list(range(0, -9,-1)) will print [-1, -2, -3, -4,-5, -6, -7, -8) [0,-1, -2, -3, -4,-5, -6, -7, -8 ... [0,-1, -2, -3, -4,-5, -6, -7] Select the correct answer from above options...
asked Dec 28, 2021 in Education by JackTerrance
0 votes
    Simran write a code print: (“hello friends”)but when she executed there comes an error what was the error and why did it occur Select the correct answer from above options...
asked Dec 23, 2021 in Education by JackTerrance
0 votes
    what will be the output of following python code print(‘ab12’.isalnum()) Select the correct answer from above options...
asked Dec 24, 2021 in Education by JackTerrance
...