Question: Given the following statements: s1 = 'Computational Thinking' s2 = Python Rocks! Show the result of evaluating each of the following string expressions (first answer

Given the following statements: s1 = 'Computational Thinking' s2 = "Python Rocks!" Show the result of evaluating each of the following string expressions (first answer these without using Python/IDLE and then use Python/IDLE to check your answers): a) 'CSC 110 is all about--> ' + s1 b) 4(s2[0]+s1[0]+!) c) s1 [0:11] d) s1[14:14+ len ('Thinking') ]+ " in " +s2[ 0:6] e) s1.split ('a') f) how many did you get correct above (out of 5 questions), after correcting your answers using IDLE? Which ones did you get incorrect? Do you need any help with understanding these
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
