1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
amid [387]
4 years ago
8

Declare a class named Patient

Computers and Technology
1 answer:
ivanzaharov [21]4 years ago
3 0

Answer:

class PatientData:

 def __init__(self, height_inches = 0, weight_pounds = 0):

     self.height_inches = 0

     self.weight_pounds = 0

 

lunaLovegood = PatientData()

print ('Patient data (before):', end=' ')

print (lunaLovegood.height_inches, 'in,', end=' ')

print (lunaLovegood.weight_pounds, 'lbs')

lunaLovegood.height_inches = 63

lunaLovegood.weight_pounds = 115

print ('Patient data (after):', end=' ')

print (lunaLovegood.height_inches, 'in,', end=' ')

print (lunaLovegood.weight_pounds, 'lbs')

Explanation:

Output is as below

Patient data (before): 0 in, 0 lbs

Patient data (after): 63 in, 115 lbs

You might be interested in
Which of the following is considered to be open-end credit?
tia_tia [17]

Department store charge cards are considered open-end credit, so the answer is C.

4 0
3 years ago
Read 2 more answers
Tipos de lenguajes relacionados con c++?
Ber [7]

Answer:

Programación Java, Programación Python, Ruby

Explanation: Porque ellas son ...

3 0
3 years ago
Explain briefly the FIREWALLS
Vlada [557]

Answer:

Think of a firewall as your own personal security guard. The firewall will block unapproved websites from talking to your computer and will stop your computer from talking to unapproved/unnecessary websites. Hope this helps!

Explanation:

7 0
3 years ago
Which are the two places where auto sum button is available?​
Pavel [41]

Click on the AutoSum button from the Editing group of the ribbon. Excel will highlight the ... The AutoSum option can be found in two areas :.

7 0
3 years ago
Edhesive 4.2 question 2 answers
Citrus2011 [14]

Answer:

total=0

pet=input("what pet do you have? ")

while pet!= "rock":

   total=total+1

   print("you have a "+pet+" with a total of "+ str(total)+ " pet(s)")

   pet=input("What pet do you have? ")

Explanation: Just copy and paste above again just copy and paste this will get you a 100 percent i made another account just to give yall edhesive answers if yall need help with any edhesive just comment below

7 0
3 years ago
Other questions:
  • Before installing any software, it's always important to back up your system and to create a BLANK, which enables you to go back
    6·2 answers
  • B. Write a function that takes one double parameter, and returns a char. The parameter represents a grade, and the char represen
    7·1 answer
  • A​ client-server application that requires nothing more than a browser is called​ ________.
    8·2 answers
  • Create a class called Hangman. In this class, Create the following private variables: char word[40], progress[40], int word_leng
    11·1 answer
  • For which purpose is RAM used?
    7·2 answers
  • Post as a reply your example of "data, which is processed into information" case - examples should not necessarily be related to
    13·1 answer
  • Sonja is writing a program to compare two numbers and print the larger number. Which of these should be used?
    6·1 answer
  • What happens when a user clicks Accept on a meeting request?
    9·2 answers
  • AI structure question. Please help
    9·1 answer
  • 26. Universal Containers (UC) has a queue that is used for managing tasks that need to be worked by the UC customer support team
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!