Write a class definition line and a one line docstring for the class Dog. Write an __init__ method for the class Dog that gives each dog its own name and breed. Test this on a successful creation of a Dog object. >>> import dog >>> sugar

Answers

Answer 1
Python Code:

class Dog:
""" Dog class definition """

# data attribute species as part of the class Dog
species = "Canis familiaris"

def __init__(self, _name, _breed):
""" Constructor """
# Assigning values
self.name = _name
self.breed = _breed
self.tricks = []

def teach(self, trick):
""" add a passed string parameter to tricks """
# Adding to list
self.tricks.append(trick)
# Printing message
print(self.name + " knows " + trick)


def knows(self, chkStr):
""" check whether a passed string parameter is in the dog’s list of tricks """
# Checking in tricks list
if chkStr in self.tricks:
# Printing message
print("Yes, " + self.name + " knows " + chkStr)
else:
# Printing message
print("No, " + self.name + " doesn't know " + chkStr)

Related Questions

Which HTML tags describe the meaning of the content?
describe the meaning of the content.

Answers

Defines an HTML document
Contains metadata/information for the document
Defines a title for the document

Answer:

Semantic elements in Plato

Explanation:

Define the term loop rule.
The loop rule tells us that if we sum the blank
across all the components in a single closed path of an electrical network, the result is 0.

Answers

Answer:

voltage differences

Explanation:

100 POINTS!!!
what kind of laptop is compatible with my pc lol i want to do a dual pc setup and my budget is $500.
PC specs:
AMD Ryzen 7 1700X Eight-Core Processor 3.40 GHz
16 GB DIMM 1400 MHz RAM
Radeon RX580 Series

Answers

Answer:

Hmm.. Try researching, I'm sure you'll find something there..

Mark’s friends told him about an automated program that sends unsolicited messages to multiple users. Which type of program were Mark’s friends referring to?

Answers

Answer:

Spambots.

Explanation:

Spambots send thousands of messages world wide once they get your information things like email and such and send out unsolicited things out constantly. 

Write a program that:
a) Asks the user if they want to multiply two numbers that they entered, if their answer equals yes then multiply the numbers else write a message saying "peace out".

Answers

Answer:

num1 = int(input("Enter number 1: "))

num2 = int(input("Enter number 2: "))

choice = input("Do you want to multiply them?: ")

if choice.capitalize() == "Yes":

   print(num1 * num2)

else:

   print("Peace out.")

Explanation:

Gg ez.

(I wrote the it in python because I don't know what language you want it in. Next time, say what language you want.)

All Office programs have similar commands on the tab for changing the document view a. File b. View c. Locate d. display ​

Answers

Answer:

B. View

Explanation:

So you can eliminate "Locate" and "Display", since those do not exist on the Microsoft Word task bar.

Now you're left with File and View. File has everything to do with sharing and exporting your file, such as printing or saving it to your computer as a specific file.

With that being said, we're left with "B. View", which as you can see when you click it, presents many us with ways to view our document.

Good luck on your Microsoft Office/Word Certification!

PLZ ANWER FAST!!!!

Use the drop-down tool to select the correct word or phrase.

How fast data travels on the network:

The ability of a network to recover after any type of failure:

Text within a document that is linked to other information available to the reader:

The way the network is laid out, including all the interconnections:

When all computers in a network are connected in a “star” formation:

A type of network that does not use a router but shares data directly between computers:

A unique location for a computer on the network:

Rules for how routers communicate with one another and send data:

Answers

It should be noted that the speed of fast data on a particular network is known as bandwidth.

The ability of a network to recover after any type of failure is known as fault tolerance.

Text within a document that is linked to other information available to the reader is called hypertext.

The way the network is laid out, including all the interconnections is known as network topology.

When all computers in a network are connected in a “star” formation, it's known as a star topology.

A type of network that does not use a router but shares data directly between computers is known as peer-to-peer.

A unique location for a computer on the network is known as the IP address.

Rules for how routers communicate with one another and send data are known as the router protocols.

Learn more about bandwidths on:

https://brainly.com/question/8154174

Answer:

Text within a document that is linked to other information available to the reader is called

✔ hypertext

.

A unique location for a computer on the network is its

✔ IP address

.

The

✔ fault tolerance

is the ability of a network to recover after any type of failure.

The computer that responds to requests from the client computer is known as the

✔ server

.

A

✔ queue

is an ordered list of tasks waiting to be performed.

Explanation:

just did it.

35. Which of these devices can be accessed remotely across the internet? 1 O Solid State Drive O USB Memory Stick Cloud Storage Optical Media This is a required question​

Answers

Answer: I believe it's cloud storage.

Explanation:

The cloud is basically an area of all the data you've acquired. And you can only access it on the internet. It's not a physical object. So The Cloud is your answer! :>

(Please mark this as brainliest)

What would graphics be classified as?

Answers

Answer:

raster and vector graphics

raster graphics is the answer

what is the keyboard shortcut to display formulas on the worksheet : a. CTRL+ B. CTRL+: C. CTRL+; D. ALL THE ABOVE

Answers

girl i dont know figure it out pookie

Declare and define a function called displayConcat that displays the concatenation of the first parameter with the second. Ex: displayConcat("After", "noon") displays "Afternoon".

Answers

function displayConcat(first, second) {
// using console.log print concatenation of first and second strings
console.log(first + second);
}

displayConcat('After', 'noon');

What is the purpose behind the Three Phase Commit? It improves upon the two phased commit by requiring that locks be acquired at the start of a transaction. It allows for coordination even in the event of unreliable network connections. It ensures that no shared locks are help by other connections in the event of a write operation. None of the above.

Answers

The answer is a) It improves upon the two-phased commit by requiring that locks be acquired at the start of a transaction.

Reason: The 3PC is an extension or you can say developed from 2PC that avoids blocking of an operation. It just ensures that first n sites have intended to commit a transaction that means it acquires commits or locks before the start of any transaction to avoid any blocking.

Option b) is wrong as it does not allow coordination, it just let all the other sites do their transaction if any other site is blocked, so no coordination is there between sites that they will wait till their coordinator is corrected.

Option c) is wrong as lock operations are shared between other connections as when their coordinator fails, the new coordinator agrees to the old coordinator that they had shared locks before and they can start their transaction.

Option d) is wrong as option a) is correct.

If you like the answer, please upvote.

explain the different types of programming languages​

Answers

Answer:

Language types. Machine and assembly languages. Algorithmic languages. FORTRAN. ALGOL. C. Business-oriented languages. COBOL. SQL. Education-oriented languages. BASIC. Pascal. Logo. Hypertalk. Object-oriented languages. C++ C# Ada. Java. Visual Basic. Python. ...

Elements of programming. Control structures. Data structures.

Explanation:

Pls Mark Brainliest

Why must the image be reduced when the field of view is widened to take in more of the scene?

Answers

The lighting in the shot
As the size of the hole is increased, a larger cluster of light rays gets through to the film or sensor and makes a wider, even blurrier circle. These circles overlap, so the wider each circle becomes, the less clear the picture will be.

Which system provides an easier way for people to communicate with a computer than a graphical user interface (GUI)

Answers

Answer: natural Language Processing

Explanation:

Natural Language Processing: It is a sub field of linguistics which is concerned with the interactions between Human and computer especially how to program computers to process and to understand large amounts of natural language data.

What cable is used to connect devices together on a network?

Answers

Answer:

Ethernet crossover cable

Explanation:

.

What is the term for the action of Brazil imposing tariffs on US imports in response to the imposed tariffs by the U.S. on Brazilian exports to the United States ?

A. Reclaiming
B. Retaliation
C.retribution

Answers

I think the answer is B.

The definition of "nested statements" is _____.
a. elements of HTML that work within other elements of HTML
b. elements of specific text that work within elements of HTML
c. elements of specific code that work within elements of HTML
d. elements of HTML that work outside of elements of HTML

Answers

C??i think sorry if wrong ..

Write a program that allows the user to enter three separate strings: a city name, a state name, and a ZIP code.

Answers

Answer:

In Python:

city = input("Enter a city: ")

state = input("Enter a state: ")

zip_code = input("Enter a zip code: ")

Please answer the questions.

Answers

Answer:

10 days

Explanation:

because they have to go through all your history to see if any of that could of caused it

Answer to questions 1 is option D, answer to question 2 is option B, answer to question 3 is option D

What free website can you record videos on, and edit them without money?

Answers

Answer:

You can edit videos on Capcut for free and I think you can also use Alightmoon

Answer:

You can edit videos using this application called Kinemaster.

Explanation:

After recording the video download Kinemaster available on Playstore and App store

(Find the number of uppercase letters in a string) Write a recursive function to return the number of uppercase letters in a string using the following function headers: def countUppercase(s): def countUppercaseHelper(s, high): Write a test program that prompts the user to enter a string and displays the number of uppercase letters in the string.

Answers

def countUppercase(s):
count=0
for i in s:
if i.isupper():
count+=1
s=s.replace(i, "")
else:
s=s.replace(i, "")
countUppercase(s)
return count

element=input("Enter the string: ")
string=countUppercase(element)
print("\nNumber of upper letter in the string: ",string)

explain different users of computer in briefly?​

Answers

Answer:

The question is invalid; there are many types of computer user. Why on earth do you think there are five?

From the top of my head.

Casual- someone at home browsing the web, reading email.

IT Consultant. Advising people.

Software developer- writing software

Secretary - manages email for a company

Academic. Writing research papers.

Monitors. Monitor a computer system.

That’s six off the top of my head. There are probably a dozen more. So why do you think there are five?

How can I have a private conversation with no one knowing on my iPhone

Answers

Answer:

Just share a note by making one.

Explanation:

Thank you

Make a Flow Chart From this C Programming Language Code

Answers

Answer:

1) Print message "Hello Everybody"

If you wish to print a simple message "Hello everybody" in a flowchart in c language, here is the example:

flowchart in c

2) Input 2 numbers from the user and print their sum

Imagine that you are a user who wishes to put in two numbers and want their sum to be printed. Here is a flowchart for structure in c which is required:

flowchart in c language

3) Input numbers from the user and check whether it is even or odd

If you wish to put in numbers and then check whether it is an even number or an odd one, the following flowchart of c language can significantly help.

flowchart for structure in c

4) Flowchart to find the sum of the first 50 natural numbers

Let’s first see how that will look in a flow chart, and then we see the same thing mapped to a C program. This shows you why it’s important to map out your algorithm to a flow chart before you start coding it.

flow charts in c,

The loop easily translates to a simple C for loop. In this program, we initialize the variable sum =0 and n=0. In the next step, we increment n by 1 and assign sum=sum+n. We check if n=50 and if not, increment n by 1. Else we just print the sum.  

5) C Program to find the Factorial Value of a Number

Now let’s look at a bit more complex example. First, we’ll draw out the flow chart for the factorial n.

flowchart of if statement in c,

6) Control Algorithm for cooking toast in the toaster

Using a flowchart describe the control algorithm that a toaster might use to cook toast. There will be a start button the user pushes to activate the machine. There is another input that measures toast temperature. The desired temperature is preprogrammed into the machine. The output is a heater, which can be on or off. The toast is automatically lowered into the oven when the heat is applied and is ejected when the heat is turned off.

flowchart in c

7) Calculation of the average of two numbers

If we have to calculate the average of any two given numbers, the following flowchart for structure in c will be made.

flowchart in c language

Explanation:

mark me brainlist pls

The current annual interest rate is 5 percent, and you are taking out a 20-year loan with a monthly end-of-month payment. If you can afford monthly payments of $3000 per month, what is the most you can borrow?

Answers

Answer:

720k.

Explanation:

How often do you trade cowoncy? If so, for what and how much?​

Answers

There are different ways to trade cowoncy. There are some legitimate site to buy and sell it. In trade cowoncy, about 100000 Cowoncy is bought for $17.89USD.

Cowoncy is commonly described as the OwO bot's form of currency. It is known as a currency used worldwide in hunting.

Its role is mainly for for hunting and in the activation of one's huntbot and it is often used in other form of purchases such as cosmetics, etc.

Learn more about trade from

https://brainly.com/question/17727564

1. All the computer has a power button.​

Answers

Answer:

The power button is a round or square button that powers an electronic device on and off. Nearly all electronic devices have power buttons or power switches. Typically, the device powers on when the button is pressed and powers off when it's pressed again.

Explanation:

1. True. All computers have some way of turning on or off. whether that be a button or a switch.

Question #2
Dropdown
Complete the sentence.
A_____
number is composed of only zeros and ones.

Answers

What are the answer choices? If none then i say "A prime

number is composed of only zeros and ones."

Answer: Binary

Explanation: Binary numbers use the base-2 numeral system (binary). This system uses only two symbols: "0" (zero) and "1".

1. Go to a popular online electronic commerce site like Amazon. Place several items in your shopping cart, and then go to check out. When you reach the screen that asks for your credit card number, right-click on the Web browser and select Properties. You may need to use the help feature of your browser to find the security protocols in use and the certificates used to secure your transactions. What did you find out about the cryptosystems and protocols in use to protect the transaction

Answers

On Amazon.com, I found that there are a few cryptosystems and protocols in place. The most interesting thing I found was that there were 12,292 blank lines of code before anything was actually written. Amazon ensures a secure transaction by encrypting the users information on the users end, and then decrypts their information on their end.
Other Questions
I have no idea how to do this. Please help. Each time Bobby rides the JUTC bus, money will be deducted from the value of his card. He rode the bus 5 times and his card was charged $100. What integer best represents the the amount by which the balance of the card changed each time it was used?Possible AnswersA. -$500B. $20C. -$20D. $500 Rather than creating a new product, Chinese manufacturers have been notably successful at adopting a different strategy. They have been able to make and offer a competing product so rapidly that the majority of adopters have a choice when purchasing the product for the first time. This is referred to as a Chronic migraine sufferers should find an ordered pair that represents the vector from (-3.7, 2) to (-4, -5) B(14, 12)A(-5,-2)A. Find the midpoint of Segment AB . What role did Mary Musgrov play in the establishment of Savannah? Find the total cost with tip.Mr .Smith goes to eat for his son's birthday. The total bill is $56.50. If Mr. Smith leaves a 22% tip. What is the tip amount? What is the total cost of the meal with tip included? Can you calculate problems involving percent? pls help i WILL make as brainlyst pls i dont wanna fail pls help I don't have time if I don't summit I fail and lose my scholarship (_;) can someone help me for this? PLEASE PLEASE HELP IM TIMED!! Just look at the picture What is the primary difference between anorexia nervosa and bulimia nervosa? write the equation of a line that passes through the points (-7,-4) and (-5,-6) Simplify using combining like terms: 3a + 6 + 2a - 8 Moral lesson of the poem the leader and the led Let f be a differentiable function. If h (x) = (2+ f (sin x))", which of the following gives a correct process for finding h' (x) ? In which direction does friction act?1. in the same direction as the motion2. at right angles with the motion3. the opposite of the direction of motionFirst one to answer will get a brainliest! A problem is defined as Multiple Choice none of these answer is correct. what you already have, but want to make it better. the difference between what exists presently and what you expect or want. critical thinking. creativity. what is the probability