Python Institute Certified Associate in Python Programming PCAP-31-03 Question # 40 Topic 5 Discussion

Python Institute Certified Associate in Python Programming PCAP-31-03 Question # 40 Topic 5 Discussion

PCAP-31-03 Exam Topic 5 Question 40 Discussion:
Question #: 40
Topic #: 5

What is the expected behavior of the following code?

x - 3 % 1

y -1 if x > else 0

print (y)


A.

it outputs -1


B.

the code is erroneous and it will not execute


C.

it outputs 1


D.

it outputs 0


Get Premium PCAP-31-03 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.