Edhesive 6.8 lesson practice answers

Edhesive 6.8 Lesson Practice Answers

Answers

Answer 1

Answer:

1.) 25 ; 15 ; 15

2.) 50 ; 15 ; 50

Explanation:

In the first function written :

The variable val was initially decaled or assigned a value of 25 and that was what was printed first.

However, after the example function was written, the val variable was finally assiagned a value of 15 within the function. However, it was also declared that the global variable takes uonthe val value. Hence, the val variable initially assigned a value, of 25 changes to 15 globally.

For the second code :

From the top:

Val was assigned a value of 50 ;

Hence,

print(val) gives an output of 50

Within the function definition which prints the value of val that is assigned a value of 25 within the function.

Since tbe global variable isnt reset.

Printing Val again outputs 50;since ito is outside the function.

Answer 2

The code output description can be defined as follows:

Code Explanation:

In the first code, a "val" variable is declared that hold an integer value.In the next step, a method "example" is defined.Inside the method a global keyword is used that define a variable "val" in which it hold an integer value and print its value.After defining a method two print method is used that print "val" variable value and call exmaple method.In the second code, a "val" variable is declared that hold an integer value.In the next step, a method "example" is defined.Inside the method another variable "val" is defined in which it hold an integer value and print its value.After defining a method two print method is used that print "val" variable value and call exmaple method.

Code:

val = 25 #defining a variable val that holds an integer value

def example(): #defining a method example

   global val #using keyword global to define variable val

   val = 15#defining an integer variable that hold integer value

   print (val)#print global variable value

print (val) #print val variable value

example()#calling example method

print (val)#print global variable value

print("----------------------------------------------------")

val = 50 #defining a variable val that holds an integer value

def example(): #defining a method example

   val = 15 #define variable val that holds integer value  

   print(val)#print val variable value

print (val) #print val variable value

example() #calling method example

print (val)#print val value

Output:

Please find the attached file.

Learn more:

brainly.com/question/21866333

Edhesive 6.8 Lesson Practice Answers

Related Questions

write the html code to get the following webpage
the solar system
ina solar system the planets move around a star. earth is a planet around sun .there are eight planets in a solar system . in order of increasing distance from the sun these are 1.mercury 2.venus 3.earth 4.mars 5.jupiter 6.saturn 7.uranus 8.neptune
save the html document as solarsystem.html

Answers

Answer:

<!DOCTYPE html>

<html>

<head> <title>webpage</title>

</head>

<body>

<h1>The Solar System</h1>

<p>In a solar system the planets move around a star. Earth is a planet around sun. There are eight planets in a solar system . In order of increasing distance from the sun these are: </p>

<ol>

<li>Mercury</li>

<li>Venus</li>

<li>Earth</li>

<li>Mars</li>

<li>Jupiter</li>

<li>Saturn</li>

<li>Uranus</li>

<li>Neptune</li>

</ol>

</body>

</html>

<!-- and save the file as solarsystem.html -->

What are some ways you can give staying off your phone a "boost" and make it easier to do?

If you're trying to break a bad habit, what are some things you can do so that you don't slip back into old ways?

Please help this is due today and I really need help.

Answers

Answer:

go do something outside and leave your phone inside to charge

Explanation:

HTML code to display square bullets in an unordered list.​

Answers

Answer:

Find the source code below.

Explanation:

HTML is an acronym for hypertext markup language and it is a standard programming language which is used for designing, developing and creating web pages.

Generally, all HTML documents are divided into two (2) main parts; body and head. The head contains information such as version of HTML, title of a page, metadata, link to custom favicons and CSS etc. The body of the HTML document contains the contents or informations of a web page to be displayed.

The complete code for the unordered list with square bullets is written below;

<! DOCTYPE html>

<html>

<head>

<title> Square bullets in an unordered list. </title>

</head>

<body>

<h1> My Favorite Subjects </h1>

<p> This is a list of my favorite subjects; </p>

<ul style =" list- style- type:square">

<li> Computer </li>

<li> Mathematics</li>

<li> Physics </li>

<li> History </li>

</ul>

</body>

</html>

Note: The code isn't indented because i'm not using an appropriate code editor.

Since we are creating a document with an unordered list, we would use the <ul> and </ul> parent tag while the child tag <li> and </li> sorts the list. Also, we would use the style attribute to specify the required inline style (square bullets) for the list.

Write a program code which asks for 80 numbers between 100 and 1000 to be entered.
It checks that the numbers are in the correct range, and stores them in an array. It
counts how many of the numbers are larger than 500 and then outputs the result when
the program is finished.

Answers

Answer:

my hearth start with a piece of demon cant let me go!

The idea that money, language, education, or infrastructure creates a gap between those who have access to information technologies and those who do not.

Answers

Answer:

The Digital Divide, or the digital split, is a social issue referring to the differing amount of information between those who have access to the Internet (specially broadband access) and those who do not have access

Explanation:

EXPLAIN WHATS agri crop EXPLORATORY COURSE​

Answers

What is what ?? Can u say it correctly

What is the significance of XML tags?
A.) They are self-descriptive.
B.) They are predefined.
C.) They are only computer readable.
D.) They are only human readable.

Answers

Answer:

your answer would be to ur question would be B

Answer:

It is self-descriptive

Explanation:

Plato Users

How should you best communicate
this information to Keisha?
(Select all that apply.)

Answers

Answer:

if you use keyword in your search you will have a better chance of what you are finding.

Explanation:

Write a program code which asks for 80 numbers between 100 and 1000 to be entered.
It checks that the numbers are in the correct range, and stores them in an array. It
counts how many of the numbers are larger than 500 and then outputs the result when
the program is finished.

Answers

Answer:

If you are using Python,

```count = 0

for i in range(0, 79):

a = int(input("Input a number: "))

if 100 <= a <= 1000:

 if a > 500:

  count += 1

else:

 print("Please input a number between 100 and 1000!")

 i -= 1

print(count)```

Explanation:

count refers to the number of 500s and above,

the for loop is required for the program to loop 80 times,

a is the input collected,

the nested if is to check whether the number is above 500 and the if is used to check if the number is between 100 and 1000 if not, it will output that you need to input a number between 100 and 1000,

the i-=1 is required to make sure that part wasn't counted.

and the last print is to output the number of numbers above 500

Could somebody please find the bugs and amend them? This question is worth 25 Brainly points!
---------------------------------------------------------------------------

#Tax Calculator with 4 bugs

salary = int(input("Please enter your annual salary: £"))

if salary < 30000
#Salaries under 30000 are taxed at 20%
tax = salary * 0.2
elif salary >= 30000:
#Salaries over 30000 are taxed at 40% for anything over 30000
salary = salary - 30000
tax = salary * 0.4 + 6000
else:
#Salaries over 150000 are taxed at 45% for anything over 150000
salary = salary - 150000
tax = salary * 0.45 + 6400 + 48000


print("Earnings of £",salary,"will attract taxes of £",round(tax,2))
input("Press ENTER to quit")

Answers

line 4

if salary < 30000

error missing ":"

solution

if salary < 30000:

line 6

tax = salary * 0.2

error is missing identifier for tax

solution add identifier for tax on line 3

tax = 0.0

line 11

error syntax

solution is move tax = salary * 0.4 + 6000 to the right

tax = salary * 0.4 + 6000


What is the difference between iterative and sequential?

Answers

Answer:

iterative means to iterate, or "repeat" ex: 4,4,4,4,4

sequential means to increase with a constant ex:

1,3,5,7,9,11,13. the constant that the terms are incremented by is 2

Select the correct answer.
Which graphical element of a spreadsheet does this image represent?

A. column chart
B. scatter plot graph
C. pie chart
D.bar graph

Answers

Answer:

Pie Chart

Explanation:

It’s a pie chart :)

Explanation: pie charts of course look like pie: a circle that has been cut into pieces

What are the steps for inserting an internal link?
1. Type into a cell.
2. Then, select the that includes the cell you wish to link to.
3. Next, click the cell you wish to reference.
4. Finally, press .

Answers

Answer:

=

Worksheet

Ctrl + Enter

Explanation:

Answer:

=, worksheet, Ctrl+Enter

Explanation:

Please its argent and I will give you BRAINLIEST ANSWER 6. How would you confirm that a colourless liquid given to you is pure water?

Answers

Answer:

Evaporate the colourless liquid on a low flame. If no residue is left and boiling exactly at 100 ºC then it is pure water otherwise not.

Explanation:

Assume there is an interactive math tutor. Many students take the math lessons online. At the end of each lesson, students have to attempt a test. What is the performance measure of this agent?

A.
count the number of students
B.
display suggestions for solving problems
C.
take input from the keyboard
D.
enable the student to attain maximum marks

Answers

Answer:

I think it is D

Explanation:

This is the goal, or the requirement for success.

Answer:

D. Enable the student to attain maximum marks

Explanation:

Correct on Clever

hey Guys I wanted to have fun so I made a riddle first to solve gets the crown \

When John was six years old he hammered a nail into his favorite tree to mark his height. Ten years later at age sixteen, John returned to see how much higher the nail was. If the tree grew by five centimeters each year, how much higher would the nail be?

Answers

Answer:

how.much higher??? 5cm.

Explanation:

or unless it was a different approach-

then it would have gone 50 cm which is 19.6 inches

can enyone tell me a book to read thats eazy and for 4th grade hurry and help me PLEASE

Answers

Answer:

Try any Geronimo Stilton books. They are the ones with the brownish orange mouse with glasses.

James and the Giant Peach

Explanation:

easy to read for forth graders.

Which of the following represents a bit?

0

01010110

3F02C

12.356

Answers

Answer:

0

Explanation:

A bit is a single piece of information and the smallest unit that can possibly represented by a computer, like 1 or 0.

The one that represents a bit is 0. The correct option is A.

What is a binary digit?

A binary digit (bit) is the smallest unit of binary data that can be stored in a computer system.

A bit can only be in one of two states: on or off, which are frequently represented by ones and zeros. Which information is entered into and processed by the computer is determined by the combination of ones and zeros.

One of the four types of number systems is a binary number system. Binary numbers are basically represented in computer applications by merely two symbols or digits, namely 0 (zero) and 1 (one).

A bit is a binary digit, which is the smallest data increment on a computer. A bit can only hold one of two values: 0 or 1, which correspond to the electrical values off or on.

Thus, the correct option is A.

For more details regarding binary number, visit:

https://brainly.com/question/28222245

#SPJ2

NARIO 1

Amy scheduled herself from 8:00 AM–1:00 PM Sunday through Wednesday. On Wednesday, she

needed to release her intervals from 11:00 AM 1:00 PM at the last minute. She serviced all of the

other time for which she posted. What was her overall Commitment Adherence percentage?

Answers

Answer:

85%

Explanation:

8:00 a.m - 1:00 pm = 5 hours

Sunday - Wednesday = 4 days

Total scheduled hours = 5 * 4 = 20 hours

Hours in adherence :

Sunday to Tuesday (3 * 5 hours) = 15 hours

Wednesday : (11:00 a.m - 1:00 a.m) = 2 hours

Total hours adhered = (15 + 2) = 17 hours

Commitment adherence percentage :

(Total hours adhered / total scheduled hours) * 100%

(17 / 20) * 100%

0.85 * 100

= 85%

Who wrote Hamlet?

Brainliest for the right answer​

Answers

Answer:

William Shakespeare wrote hamlet

Explanation:

it’s wroten by a William Shekespeare

If you like undertale and their AU's pls be my friend

Answers

Answer:

Alright

Explanation:

Answer:

okie

Explanation:

I made an Au called sc-tale.

imma follow u now

plz give me brainliest T-T i have none

What will the following program display in the console?

var sum = 0
for(var i = 0; i < 5; i++){
sum = sum + i
}
console.log(sum);

A. 15
B. 10
C. 5
D. 0

Answers

Answer:

b- 10

Explanation:

The display of the given program will be 10. The correct option is B.

What is console?

The text entry as well as display device for systems management messages, particularly those from the BIOS or boot loader, the kernel, the init system, and the system logger, is one definition of system console, computer console, root console, operator's console, or simply console.

The console on modern small computers is usually the computer's attached monitor and keyboard.

The console on many older computers is an RS-232 connection to a terminal, such as a DEC VT100. This terminal is kept in a secure room and is constantly monitored by the minicomputer's operators.

The given program's display will be ten, as the for loop will continue till the number is less than 5.

Thus, the correct option is B.

For more details regarding console, visit:

https://brainly.com/question/28702732

#SPJ6


How is an informal outline organized?

Answers

Answer:

An informal outline usually organizes information with bullet points. ... And even lower case letters (the lowercase letter O) are conventionally used in ASCII (text only) or other environments where list point characters are not available. When writing by hand, bullet points can be drawn in any style

a worksheet can have a maximum of number of rows​

Answers

1,048,567 rows


I don’t really understand the question

Although you're limited to 255 sheets in a new workbook, Excel doesn't limit how many worksheets you can add after you've created a workbook. The only factor that ultimately limits the number of worksheets your workbook can hold is your computer's memory.

A Range is a group of selected Cells in an Excel worksheet. A Range can be rectangular or square in shape. You can select a Range by left-click, drag and release the mouse over the cells you want to select. ... Similarly, a Range in Excel worksheet is identified by a Range Address.
I believe it’s 1,048,567

Am I correct? Please help

Answers

Answer:

In my opinion, yes you're correct!

Explanation:

When designing a website, Claire creates a color palette for the web pages. How can the color palette help Claire design effective web pages?

Applying the color palette to the web pages can help Claire create ________ She can best use the color palette to ____________.

First blank:
A. Smooth and even surfaces
B. Depth in the design
C. Consistency and unity

Second blank:
A. illustrate content on the screen
B. add interactive elements
C. highlight important content ​

Answers

consistency and unity
highlight important content

Consider the following code segment

Answers

Answer:

D:

2

54

Explanation:

In line 3 Math.random() will return a number between 0 and 1, so the minimum is 3 (0*5+3=3), therefore it is impossible for line 4 to return the value 2

what is out put following code?​

Answers

Answer:

please provide full picture of the code and then i will be able to help u

Explanation:

Answer:

Do you have the entire question?

Explanation:

Consider the following code segment - 3

Answers

Answer:

The answer is "Choice C".

Explanation:

In the above-given code, a 1D array "list" is declared that holds integer values, and it uses three print which can be defined as follows:

In a first print method, it uses the length method that holds the array length that is "9".In a second print method, it uses the array that prints the first element value of the array that is "22".In the last print method, it uses the array that holds the length of the array, which will give an error message that is "ArrayIndexOutOfBoundsException".   That's why only the choice C is  correct.

(03.05 LC
A reliable textbook should contain references to (6 points)
O only primary sources
mainly secondary sources
O both primary and secondary sources
no more than two of each type of source
Helpppp plzzzzz

Answers

Answer:

B. both primary and secondary sources.

Explanation:

Information can be defined as processed data that can be used to perform specific tasks or job functions. The two (2) main sources of information are;

I. Primary source: this type of source comprises of raw information that are first-hand in nature i.e a personal experience or witness of an event (occurrence).

II. Secondary source: this type of source relies solely on the primary source for its information and as such it comprises of second-hand information provided by other authors or researchers.

A reliable source is an information source that is unbiased, trustworthy and reliable. Also, a reliable source is typically backed up by evidence from various information channels and should be accurate.

In order to validate a reliable source, it is necessary that the information provided is checked against other credible sources to verify its accuracy.

This simply means that, if you got an information (data) from any source such as newspaper, website, television, books, radio or anywhere else, you should confirm the credibility and reliability of these information by verifying from one or more sources listed in the reference.

Hence, a reliable textbook should contain references to both primary and secondary sources.

Additionally, references are citations or links to all of the sources from which an author, writer, or researcher got his or her information from. One important thing that references show a reader is that the information is well researched.

Other Questions
Find the missing sides and leave the answers as radicals in simplest form!! HELP what are the 4 P's of storytelling Fill in each blank with the type of energy being described The sun gives off ____energy, which enters the atmosphere. Plants absorb some of the energyand perform photosynthesis to convert it into____energy in the form of sugars. Plants and theanimals that eat them then turn that energy into a different form of ____energy, in the form ofATP. When plants and animals use the energy, it becomes ____ energy Why is it important that the location of fossils found in the ground is recorded?The location in which they are found provides the age of the fossil.The locations in which they are found provide clues to what type of animals lived in that area.The location in which they are found can provide clues on how to reconstruct the fossil.The location in which they are found provides clues on what time they were fossilized. Why are many countries in Africa developing nations pleaseee help me For the function N(y)=-3y-7, evaluate N(1) Da los resultados de las siguientes multiplicaciones de expresiones algebraicas:1) 2a^2 por 3a=2) -5x^2 por 2xy=3) 2m (4m - 3)=4) (3xy - 2) por ( 5x^2 + 4)=5) 2a^2 por 3a^3=6) - xy^2 por -5mx^4y^3=7) 3a^2b por -4b^2xPorfa ame urge How can a paperclip float on water? Use theword 'surface tension' in your answer, Can someone please help me !! Theo budgets $154 for karate classes. He buys a karate uniform, called a dogi, for $12. If it costs $8 to attend each karate class, which inequality below represents the number of classes, c, that Theo can take? 17 c 18 c 17 c 18 c Why were the systems of checks and balances and separation of powers important additions to the Constitution? change "we stopped the bus" to passive voice Read the passage from the Civil Rights Act of 1964.An ActTo enforce the constitutional right to vote, to confer jurisdiction upon the district courts of the United States to provide injunctive relief against discrimination in public accommodations, to authorize the Attorney General to institute suits to protect constitutional rights in public facilities and public education, to extend the Commission on Civil Rights, to prevent discrimination in federally assisted programs, to establish a Commission on Equal Employment Opportunity, and for other purposes.Be it enacted by the Senate and House of Representatives of the United States of America in Congress assembled, That this Act may be cited as the "Civil Rights Act of 1964."Civil Rights Act of 1964What power did the Civil Rights Act of 1964 give to the attorney general? Check all that apply. to file suits protecting constitutional rights in public facilitiesto file suits protecting constitutional rights in public educationto file injunctions against discrimination in public accommodations to establish a Commission on Equal Employment Opportunityto extend the Commission on Civil Rights Do modern performers have the freedom to interpret music from the past in ways that the music original music composer had not intended? May we use modern instruments? Place operas in modern settings? Use female voices when male voices would have been used? 1. Write the correct key term in the blank preceding each definition.a.A term used in the North in the 1800s to describe the political power slaveowners held in the South. Smoking males in a given area have a mean life expectancy of 68.5 years, with a standard deviation of 5.3 years. The distribution of life expectancy is not assumed to be symmetric.Between what two life expectancies does Chebyshev's Theorem guarantee that we will find at least 89% of smoking males?Round your answers to the nearest tenth. Enter the bounds in ascending order. Lee las instrucciones del pap de Belinda y escrbelas de nuevo en imperativo. Hi! Can somebody please help? If a bag of balloons consists of 47 white balloons, 5 yellow balloons, and 10 black balloons, what is the approximate likelihood that a balloon chosen randomly from the bag will be black? Help! Ill give brainliest if u get it right!