Exit PCAP-31-03 PCAP - Certified Associate in Python Programming
Question 4 of 5
0% complete
Q4 Single choice

Assuming that the snippet below has been executed successfully, which of the following expressions evaluate to True?

string = `python'[::2]
string = string[-1] + string[-2]

  • A

    string[0] == `o'

  • B

    string is None

  • C

    len(string) == 3

  • D

    string[0] == string [-1]