What is the expected output of the following snippet?
Question 142
Assuming that the snippet below has been executed successfully, which of the following expressions evaluate to True? (Choose two.) string = 'SKY'[::-1] string = string[-1]
Question 143
Assuming that the code below has been placed inside a file named code. py and executed successfully, which of the following expressions evaluate to True?(Choose two.)
Question 144
Assuming that String is six or more letters long, the following slice string [1:-2] is shorter than the original string by:
Question 145
Select the valid fun () invocations:(select two answers) def fun (a, b=0): return a*b
Question 146
What can you deduce from the following statement? (Select two answers) str= open ('file.txt', 'rt')