Describe the scope of the variables in this code.

class pet:
def __init__(self,strSpecies,strName):
self.species = strSpecies
self.petName = strName

def __str__(self):
return self.species + " named " + self.petName

def changeName(self, newName):
self.petName = newName

class petCarrier:
size = 'medium'
color = 'red'

The scope of petName ______.

The scope of color is ______.

Accessible to the entire program
limited to the petCarrier class
limited to the pet class


(both of the blanks need one of those answers)

Answers

Answer 1

The scope of petName is local to the class pet.

The scope of color is accessible by all parts of the program.

How to interpret programming variables?

The variable petName is local to the class; This isdue to the fact that the variable was created in a function whose name begins with two underscores.

The variable color; This is created in the petCarrier class and is accessible to the entire function. This was not created in a function whose name begins with an underscore.

Read more about programming variables at; https://brainly.com/question/9238988

#SPJ2

Answer 2

Answer:

The scope of petName limited to the pet class

The scope of color is accessible to the entire program

Explanation:

edge


Related Questions

Which the following is true of functions?

A. Programs written with functions more quickly

B. Function can help remove repeated code from a program

C. Replacing repeated code with a function will reduce the number of commands the computer needs to run.

D. Functions are called once but can be declared many times

Answers

The answer you are clocking for is B. Hope this helped!

Some people recommend deleting social media accounts because of the troubling legal and ethical implications of social media. Do you support this position? Why or why not?

Answers

Answer:

I do not support this

Explanation:

One reason is because the benefits for social media out way the unbeneficial parts.one reason is because sites like social media have forever changed the life of many familys across the globe.

AYYOOOO CAN YOU HELP A GIRL OUUTT???
Fields are data items representing a single attribute of a record. Question 2 options: True False

Answers

Answer: The answer is true

If a business/industry does not meet OSHA standards?

Answers

Answer:

Criminal penalties ensue if an employer willfully violates OSHA regulations a

Explanation: will result in individual may be fined up to $10,000 and be jailed for up to six months.

Answer:

Criminal penalties ensue if an employer willfully violates OSHA regulations and an employee is killed as a result. The guilty individual may be fined up to $10,000 and be jailed for up to six months.

Explanation:

PLEASE HELP WILL MARK FIRST CORRECT ANSWER BRAINLIEST!!!!!!!!!!~~~~~~~~~

Reese is creating a presentation. She wants to include a graphic of the steps that her department follows in the decision-making process. Which category of SmartArt would work best?

Picture
List
Hierarchy
Matrix

Answers

Answer:

C

Explanation:

Answer:

CCCC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CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC

Explanation:

Which term describes unjust behavior due to a person’s gender or race

Answers

Answer:

Discrimination

Explanation:

Answer:

Discrimination

Explanation:

Which four of the following qualify as fair use?

1. using a quote from a book that you are reviewing for a school assignment
2. modifying an image from a website and using it in a flyer for a local business
3. making a photocopy of a data table for reference while writing an assignment
4. creating a video parodying a character in a popular movie
5. paraphrasing a scholarly article in a news report

Answers

Answer:

1 using the quote and citing it

Explanation:

I would say option 1 :)

George has to present the goals of information management to his team member. What is a goal of information management?
The goal of information management is to identify information requirements for various____levels.

Answers

Answer:

Management

Credit / Resource:

This problem has already been solved, if you would like to view more about this please click the question link below.

https://brainly.com/question/5495374

what is the essence of proper nutrition?​

Answers

Answer:

Proper nutrition is about balance, and that means not getting too much of certain ingredients, such as sodium, or salt. Sodium increases blood pressure, which raises the risk of heart disease and stroke.

Explanation:

Answer:

Explanation:

Most people know good nutrition and physical activity can help maintain a healthy weight. But the benefits of good nutrition go beyond weight. Good nutrition can help: Reduce the risk of some diseases, including heart disease, diabetes, stroke, some cancers, and osteoporosis.

I just downloaded this song and if any one wants to listen to it then go ahead and do that. It’s called Trap Music 2018 âa bass boosted trap mix.

Answers

Answer:

ok

Explanation:

delete temp or %temp% files in Windows 10 is safe and, can it help boost up your PC fps?

yes or no

Answers

Answer:   yse

Explanation...

Out of these video games which one do you think is the best
(dont answer if you have never played at least 3 of these games)
Rivals of Aether
Super smash bros ultimate
Smash flash 2
Project M

Answers

Answer:

Tbh Rivals of Aether was pretty good but I gotta go with SMBU

Explanation:

SMBU was lit that's all there is to it

Answer:

Super smash bros ultimate

Explanation:

its ultimate

Can someone give me the code for the edhesive 3.7 code practice for python? Thanks.

Answers

Answer:

Its me I think u might be able to know :)

Explanation:

A presentation software that is used to organize and present pertinent information using graphics, word processing, outlining, drawing, and presentation management tools is called ?
A Microsoft Word
B Microsoft Excel C
Microsoft PowerPoint
D None of these are correct.

Answers

Answer:

C

Explanation:

Well, in your inquiry it says

"A presentation software that is used to organize and present pertinent information using graphics, word processing, outlining, drawing, and presentation management tools"

We know it isn't Microsoft Word, because Microsoft Word doesn't have a presentation feature. We know it isn't Excel because Excel is only meant for spreadsheet and analytics data.

However, on PowerPoint all these points make sense, PowerPoint is a tool that Microsoft created for the capabilities such as to present information, you can also put information inside of graphics as well, you can also draw, and outline too.

Alizeh invests $10,000 in an actively managed mutual fund that has an annual expense ratio of 1.3%. The investment earns a 7% rate of return.

How much did she make in one year on her investment with the 7% rate of return?
How much does she pay in fees for her actively managed mutual fund?
At the end of the year, what’s the total value (AFTER FEES) of Alizeh’s mutual fund?

Answers

Answer:

Alizeh

The total value (AFTER FEES) of Alizeh’s mutual fund is:

$10,570.

Explanation:

a) Data and Calculations:

Investment in mutual fund = $10,000

Annual expense ratio = 1.3%

Rate of return on investment = 7%

b) Annual return on investment = $700 ($10,000 * 7%)

c) Annual fees for her actively managed mutual fund = $130 ($10,000 * 1.3%)

d) At the end of the year, the total value (after fees) of Alizeh's mutual fund:

Investment in mutual fund = $10,000

Annual return on investment = $700

Annual fees for mutual fund = ($130)

Total value =                         $10,570

The total amount at the end of the year is the sum of the Principal ,ROI and

the expense which is   $10,570

Mutual Fund/Investment

Given Data

Principal = $10,000Expense ratio = 1.3%Ratet = 7%

1. Let us find the ROI

= 7/00*10000

=0.07*10000

= $700

2. Let us find the fees/expense

= 1.3/100*10000

= 0.013*10000

= $130

hence the total amount at the end will be = 10,000+700+130 =   $10,570

learn more about mutual funds here:

https://brainly.com/question/25300925

Why do numA and numB have the same scope in the subtract function? def subtract(numA, numB): return numA - numB def divide(numC, numD): return numC / numD answer = subtract(24,6) print (answer)

Answers

Answer:

The output of the subtract method is "18".  

Explanation:

In the above-given code, two methods "subtract and divide" is declared, that accepts two variable in its parameter, and method work with there respective names.

In this code, the subtract method accepts two-variable "numA and numB", within the same scope because it helps the method in proper functioning, and if the variable is no defined in the scope it will give an error.

Answer: 18

Explanation: got it right on edgen

All the following are the basis of the World Wide Web except:
Web browser programs
Infrastructure
Web servers
HTML

Answers

Answer:

Web browser programs

Explanation:

Web broswer programs arent very important because they arent being used to maintain the servers or contail the contents of all the sites, they are only used by people to easily view the world wide web without using advanced commands in a terminal to view sites. all the other selections are very important when it comes to maintaining the entirety of the internet.

Answer:

web browser'

Explanation:

4.2 Lesson Practice Edhisive

Answers

Answer:

10

Explanation:

To ensure your online résumé is selected by employers using online searches, you must include _____ in your résumé.

html
key words
long descriptions
hyperlinks

Need answer asap!!

Answers

You must use key words.

A big part of SEO is choosing the correct keywords

Answer:

he correct answer is letter "B": keywords.

Explanation:

Human Resources (HR) staff usually handle an overwhelming number of resumes during openings. To make sure during online searches a curriculum vitae will be selected, keywords must be included. It is most likely that the HR staff will just filter words with the characteristics of the person they are looking for instead of looking at every resume they receive.

plz mark as brainliest

can you please help look at the picture i will give you a. brainliest and 10 points​

Answers

Answer:

The last one

Explanation:

B Sofia should Distraction free Study environment. So she be Free to study with nothing Distracting Her.

Which of the following is considered proper ergonomics?
Elevating keyboard, so wrists are bent when typing
Placing the mouse close to the keyboard
Resting wrists on the desk while typing
Working on a computer while sitting in a recliner

Answers

Answer:

The First One

Explanation:

because ergonomics is trying to make the person who is using the device be in a more natural position. Raising the keyboard will make the typer feel more comfortable.

Elevating keyboard, so wrists are bent when typing of the following is considered proper ergonomics. Thus, option (a) is correct.

What is ergonomics?

Human factors ergonomics, as it is known in North America, is an area of research that seeks to learn understanding people intelligence and constraints and then utilize this knowledge to improve people's interactions with things, systems, and surroundings.

Raising the keypad and bending the wrists when typing, according to ergonomics, are employed to place the person using the computer in a more favored role. Moving the keyboard relaxes the typer. Wrist supports are commonly seen on keyboards and keyboard trays to help keep your wrists in a normal, virtually straight position.

As a result, the elevating keyboard, so wrists are bent when typing of the following is considered proper ergonomics. Therefore, option (a) is correct.

Learn more about on ergonomics, here:

https://brainly.com/question/6246159

#SPJ5

Which are examples of digital video? Choose all that apply.

video played from a reel and shown at a drive-in movie theater

video downloaded from a website and played on a portable electronic device

video streamed from a broadcast news website

video played from a DVD player

Answers

Answer:

B, C, D

Explanation:

Edge 2021

     Digital video is the electronic representation of moving pictures as digital data that has been encoded. Contrasted with this is analogue video, which uses analogue signals to represent moving pictures. Digital video is made up of numerous digital images that are shown quickly one after the other.

DV is a type of video format ?

       In order to transfer DV signals between devices, they are encoded into 80-byte blocks known as DV-DIF data (DV Digital Interface Format). These DV-DIF blocks can either be stored as raw files with the.dv or.dif extension or wrapped in other file formats like AVI, QuickTime, and MXF.

         A file produced by a digital camera and saved in a common raw format is known as a digital video (DV) file. Each Digital Interface Block (DIF) in a DV file contains 80 bytes. Audio, video, and metadata can all be found in DIF blocks.

      Who or what uses DV?  A group of video camera manufacturers led by Sony and Panasonic introduced the DV family of codecs and tape formats for digital video storage in 1995.

      DV(digital video) is one kind of video file captured by dv camera, mini dv, and digital 8.

      DV mode – what is it? A video standard called DV (Digital Video) was introduced in 1996. It was developed by a group of businesses and given the official designation IEC 61834. There are a number versions of the DV standard, including DVCAM (Sony) and DVCPRO (Panasonic). Customers are familiar with MiniDV, DV's smaller format.

To Learn more About  digital video (DV), Refer:

https://brainly.com/question/19554652

#SPJ2

QUICKLY PLEASE!!!

Respond to the following in three to five sentences.

What is the purpose of netiquette guidelines?

Answers

Answer: As the conventional etiquette, which lays out rules of ethics in social contexts, the purpose of netiquette is to help create and sustain a friendly, relaxed and productive atmosphere for online contact, as well as to avoid putting pressure on the system and creating tension between users.

Explanation:

Which position would a photographer typically use to make the viewer feel like an observer?
from below?
from the side?
from above?
from the front?

Answers

Answer:

From the side.

Explanation:

When the subject is faced away from the camera entirely, it’s easy to feel more like an unseen observer rather than an active presence. The further the distance between the camera and subject, the more the effect is intensified.

Louis has two sets of two gears (Set A and Set B) that he is using to build two different machines. He has all the gears laying out separately, as shown in the diagram above. Then he puts the gears into the machines so that the gears in Set A are touching each other and the gears in Set B are touching each other. Use the information in the diagram to answer the question. After the gears have been touching for a while, which of the two bottom gears will be cooler, and why?

Answers

Answer: The larger bottom gear will be cooler than the smaller bottom gear, because the energy that transferred to it was spread out over more molecules.

Explanation: Thermale Energy

Answer:

The smaller bottom gear will be cooler than the larger bottom gear, because less energy has to transfer for the molecules to reach the same temperature as the molecules of the top gear.

Explanation:

Which type of document should Omar print?

Answers

Well it depends on the topic he is doing. if it is a list then a plain doc with a list of numbers. if he is writing a letter then he should use the letter template.

Answer: A

Explanation:

Mary is a student that's always been helpful to other students and plays her part when group assignment is given and ensures that the group work is complete. Mary display good __________ skills.

Answers

Explanation:

..................are there no options?

Teamwork skills I would guess

Landrolold are u there ???

Answers

Answer:

what is this landrolold

Vincent has enrolled in a web development degree in college. But he also wants to learn a few extra tools and programming languages. Which course of action can help him?

Answers

Answer:

Apply for online course or programming bootcamps.

Explanation:

As a beginner in web development, it is essential to expand your sources of information, college courses for web development would introduce various new tools and programming concepts. Gathering information and learning other web based tools would ease the learning process.

Think about a game you've played recently, a program you've interacted with, or an application you've recently used. Explain how the programmers for that software used multiple data types as variables. Your discussion should cover logical types, string variables, and at least one type of numerical variable.

Answers

Answer:

The black Jack game using Python has score card variable for the player and the dealer. A conditional if statement would add a random card number if the player decides to hit but prints a string of the total card value collected if not and compares the integer with the dealer's score to reveal to winner.

Explanation:

The game creates an infinite loop to add card value to player's score if he chooses to hit and break the loop if he stays. The dealer's loop adds random number to the score but break if the score is equal to or greater than 16. Both scores are compares with an if statement to decide the winner.

Other Questions
Please help..Solve for x and y rounded to the nearest hundredth. x = 5.33 and y = 4.67x = 4.67 and y = 5.33x = 10.5 and y = 12x = 3.42 and y = 3 Beyond their value to science, the photos shot by astronauts remind us of the beauty and _______________ of our planet *Your answer can you please help me Does anyone have any drink recommendations for Starbucks???Answer this math problem thoMe and a friend go to Starbucks I order a venti caramel frap and my friend orders the same. Both of our drinks plus 4 cake pops cost $17.75. I have $40 in cash how much do I have left after our order has been paid for??? How did Robert Ballard and Jack Grimm's quests to find the Titanic, differ? (Explanation, mostly needed!) Write the answer in standard form. The line has a slope of -67 and contains the point (-5, -8). g Vivienne has 5 pets, all of which are either birds or cats. Her pets have a total of 14 legs. Choose the system of equations that can be solved to find the number of birds that Vivienne owns, b, and the number of cats that Vivienne owns, e. Question 1 of 10Monetary policy deals with government actions intended to:A. help unemployed citizens find jobs.B. increase exports to other countries.C. damage a foreign country's economy.D. control the country's money supply.SUBMIT 1. If m=1/2 and b=-4, what is the equation of the line? Help I will give brainlist You own a roofing company the roofers are replacing shingles on a house it takes 7/8 of 50 pound box of nailes to install shingles on 1/4 of the roof how many boxes of nails will the company need to install shingles on the entire roof please answer this question. The price of a computer was reduced from $400 to $300. By what percentage was the price of the computer reduced? Would you rather be the center of attention or go unnoticed? and why? Ben needs to replace two sides of his fence. Once side is 367 9/100 meters long, and the other is 329 3/10 meters long. How much fence does Ben need to buy? How do you get this annoying anime kid shut up?Please help he annoying me, i think i do what you guys said on my last 2 questions. Find the error with subject-verb agreement. Select the incorrect verb and type it correctly. The Universal Declaration of Human Rights states that everybody in the world have certain fundamental rights such as freedom of expression equal protection under law and equal pay for equal work a) Estimate the value of 50.75 x 0.18 Which Shape is NOT quadrilateral PLS HELP I WILL MARK BRAINLEST!!!!!!!!!!On a coordinate plane, a dashed straight line has a positive slope and goes through (negative 1, negative 1) and (0, 1). Everything to the left of the line is shaded.Which linear inequality is represented by the graph?y > 2x + 2y One-halfx + 1y > 2x + 1y One-halfx + 2 30 Points. i fr need to pass this test i dont feel like taking it again my senior year