Question: Can someone please answr this 12. To access the substring from character 2 to character 4 of a string that's stored in a variable named

Can someone please answr this
 Can someone please answr this 12. To access the substring from

12. To access the substring from character 2 to character 4 of a string that's stored in a variable named message, yo a. first three = u can use this code: message[03] c. first-three- message.slice(2:4) b, first-three = message[25] d' first-three = message.split(0:3) 13. Given the following code, what will be displayed after the code executes? e = "Mervin the Magician words name.splitO print(words[0]+" you are quite a"words[2].lower0) a. Mervin ,you are quite a magician c. Mervin, you are quite a magician b. Mervin, you are quite a Magician d. Mervin ,you are quite the magician 14. If word-a horse", which of the following snippets of Python code will display this result? a horsea horse! My kingdom for a horse! a. print (word * 2)+"! My kingdom for" +word+"!") b. print((word"" My kingdom for"+word+"!) 2) c. print word 2 + "My kingdom for" +word+"!") d. print( (word+"! 2My kingdom for"+word + 15. Which of the following is not a proper way to impont module from Python? For example we want to use sin) of math module a. import math as m b. from math import c. math import d. Import math 16. To throw an exception with Python code, you use the a. raise statement b. throw statement c. built-in throw0 function d. build-in raise) function 17The list. a. pop) b. append) c. insert d. index) method adds an item to the end of a

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!