question no 8 . from python
Attachments:

Answers
Answered by
1
Answer:
Ignoring that missing ")" in the end of the code which can return an error of EOF.
The output should be:
exagoodxam
Which is none of the options and (b) if you ignore the extra spaces in the option.
Explanation:
str1[:3] will return all elements before 3rd index in "Exam" which will be concatenated to good and str1[-3:], which will return elements beginning with index -3 till -1.
Answered by
0
Answer:
b, ExaGoodxam
Explanation:
there is mistake in the question. the print function is not closed.
Attachments:


Similar questions