PFP191_-_SP_2024_-_Block_5_-_FE_1906.webp
A

PFP191_-_SP_2024_-_Block_5_-_FE_1906.webp

Multiple Choices
(Choose 1 answer)
For the following code, which of the following statements is true?
def printHello():print("Hello")a = printHello()
A. PrintHello() is a function and a is a variable. None of them are objects.
B. Both printHello() and a refer to the same object.
C. PrintHello() and a refer to different objects.
D. Syntax error! You cannot assign function to a variable in Python.

Thông tin

Category
PFP191
Thêm bởi
Alphonse91
Ngày thêm
Lượt xem
971
Lượt bình luận
6
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom