Last answered:

13 Jan 2022

Posted on:

12 Jan 2022

0

Get a print out 'None' after running code below

Get a print out 'None' after running code below
imageimage

1 answers ( 0 marked as helpful)
Instructor
Posted on:

13 Jan 2022

1

Hey Sylvester,

Thank you for your question!

What the get_details() function is doing is printing out information about the patient using the print() function. Therefore, by typing

print(lionel.get_details())

you are printing the print() function inside get_details() :) That is where you get the None from. In the last line, remove the print() function surrounding lionel.get_details() and everything should work as expected. That is, the last line should only read:

lionel.get_details()

Hope this helps!

Kind regards,
365 Hristina

Submit an answer