What will be the output of the given statement? |
A) rStudy Trigge
B) erStudy Trigge
C) Study Trigger
D) tudyS rigger
Correct Answer: A
Solution :
[a] As per given code, at starting, the "newname" variable stores "r" from the given statement: |
newName=name[len(name)-1] |
newname=name[13-1] |
newname=name[12] i.e. 'r'. |
After that inside the for loop the ''newName'' will append all the characters of string. |
You need to login to perform this action.
You will be redirected in
3 sec