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


1 answers ( 0 marked as helpful)
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