Python Institute Certified Associate in Python Programming PCAP-31-03 Question # 30 Topic 4 Discussion

Python Institute Certified Associate in Python Programming PCAP-31-03 Question # 30 Topic 4 Discussion

PCAP-31-03 Exam Topic 4 Question 30 Discussion:
Question #: 30
Topic #: 4

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.