Khairi E.

asked • 11/09/21

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

1 Expert Answer

By:

Omar H. answered • 11/20/21

Tutor
New to Wyzant

Software Engineer, AI engineer & Data Scientist

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.