Question 4 s\'abc print(s[e:1 s[-2:2]+s[:1]) a) IndexError: string index out of
ID: 3698858 • Letter: Q
Question
Question 4 s'abc print(s[e:1 s[-2:2]+s[:1]) a) IndexError: string index out of range b) abcaba c) abcabb d) abcabc e) none of the above Question 5 def mirrorOnwheels(s): prev 8 for current in range(1, len(s) 1): prev - current 1 next current+ 1 if s[prev] s[next]: break else: continue return e return prev s 'Good decision! print (mirrorOnwheels(s)) a) 8 b)e c) 1 d) 3 e) none of the above Question 6 mixture (1:[1, 2, ], 2:[2, e, 1], e: (e, 1, 2]) print(mixture[2][2]) a) 3 b)e e) none of the aboveExplanation / Answer
Question 4
Answer:
s = 'abc'
print(s[0:]+s[-2:2]+s[:1])
e) none of the above
it will print abcba
Question 5
Answer:
d) 3
Question 6
Answer:
mixture = {1:[1,2,0],2:[2,0,1],0:[0,1,2]}
print(mixture[2][2])
c) 1
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.