What will be displayed after the following code executes?
Mystr = 'yes'
Yourstr = 'no'
Mystr += yourstr * 2
Print(mystr)
A) yes + no * 2
B) yes + no yes + no
C) yesnono
D) yesnoyesno
Correct Answer:
Verified
Q7: If the start index is _ the
Q8: Indexing works with both strings and lists.
Q9: What will be assigned to the variable
Q10: When accessing each character in a string,such
Q11: If a whole paragraph is included in
Q13: In slicing,if the end index specifies a
Q14: The following expression is valid:
string[i] = 'i'
Q15: What will be assigned to the variable
Q16: What is the return value of the
Q17: If the + operator is used on
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents