Python Institute Certified Associate in Python Programming PCAP-31-03 Question # 11 Topic 2 Discussion

Python Institute Certified Associate in Python Programming PCAP-31-03 Question # 11 Topic 2 Discussion

PCAP-31-03 Exam Topic 2 Question 11 Discussion:
Question #: 11
Topic #: 2

What is the expected behavior of the following code?

x = 8 ** (1/3)

y = 2. if x < 2.3 else 3.

print(y)


A.

it outputs 2.0


B.

it outputs 2. 5


C.

the code is erroneus and it will not execute


D.

it outputs 3.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.