Assuming that the snippet below has been executed successfully, which of the following expressions evaluate to True? (Choose two.) string = 'python'[::2] string = string[-1] + string[-2]
Maybe that's the case, I ask whoever took the exam to explain
Assuming that the snippet below has been executed successfully, which of the following expressions evaluate to False? (Choose two.) string = 'python'[::2] string = string[-1] + string[-2]
string = 'python'[::2]
string = string[-1] + string[-2]
print (string[0] == 'o')
print (string is None )
print (len(string) == 3)
print (string[0] == string [-2])
True
False
False
True
Hello everybody, my PCAP is set for next Monday. I see many errors in these exercises, and I'm very worried. Is the (real) exam full of errors like this ?
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
macxsz
Highly Voted 2 years, 7 months agopetibi
2 years, 6 months agoandr3
1 year, 8 months agoVeilok
1 year, 3 months agoDamon54
Most Recent 9 months, 2 weeks agoDamon54
9 months, 2 weeks agoDamon54
9 months, 3 weeks agomoteruky
9 months, 2 weeks agoseaverick
10 months, 1 week agoclecorre
1 year, 3 months agobrandonkim76
1 year, 2 months agoandr3
1 year, 8 months agoMallie
1 year, 11 months agoJnanada
2 years, 3 months agostuartz
2 years, 5 months agocvvvv
2 years, 6 months agocarpmatias
2 years, 6 months agopetibi
2 years, 6 months ago