Computer Science
Related Questions
What will be the output of the following code?
Str1= 'My name is Nandini ' Str2 = Str1[3:7] strlen = len(Str2) print(strlen)- 4
- 14
- 24
- 34
Which method removes all the trailing whitespaces from the right of the string?
- tolower()
- upper()
- Istrip()
- rstrip()
…………… function will always return tuple of 3 elements.
- index()
- split()
- partition()
- strip()
What will be the output of the following code?
A = 'Virtual Reality' A.replace('Virtual', 'Augmented')- Virtual Augmented
- Reality Augmented
- Augmented Virtual
- Augmented Reality