Question: When you define a data class, Python generates a. only a __post_init__() method b. only an __init__() method c. an __init__() method if you dont
- When you define a data class, Python generates
| a. | only a __post_init__() method | |
| b. | only an __init__() method | |
| c. | an __init__() method if you dont code one | |
| d. | both an __init__() and a __post_int__() method |
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
