Write a class called Patient. Here is an example of how you could do it ?

preview_player
Показать описание

Question: python programming
Write a class called Patient. Patient should have attributes such as name, age, symptom (in list/tuple form) and diagnosis. Create a constructor and functions to set and get for each attributes. Create object and instantiates as follows:

Name
Age
Symptoms
Diagnosis

Abu
37
Fever, cough, loss of taste/smell
Covid-19

Janice
29
Swelling, inflammation, stiffness
Arthritis

Kanang
45
Joint inflammation,stiffness, fever, weakness
Backache

John
18
Pain, fever, watery stools
Diarrhea

Print out the patient information for Abu, Janice and Kanang

------------------------

Answered By:

Omar H.
Software Engineer, AI engineer & Data Scientist

------------------------

Written Explanation:

------------------------

About: Wyzant Ask an Expert offers free answers to your toughest academic and professional questions from over 65,000 verified experts. It’s trusted by millions of students each month with the majority of questions receiving an answer within 1 hour of being asked. If you ever need more than just an answer, Wyzant also offers personalized 1-on-1 sessions with experts that will work with you to help you understand whatever you’re trying to learn.

Рекомендации по теме