Write a loop to print all elements in hourly_temperature. Separate elements with a -> surrounded by spaces. Sample output for the given program: (must be in python)
90 -> 92 -> 94 -> 95
Note: There is a space after 95.
------------------------------------------------------------------------------------------------------------------------
hourly_temperature = [90, 92, 94, 95]
for temp in hourly_temperature:
for index,temp in enumerate(str(temp)):
if index != len(temp)-1:
print(temp,'->',end=' ')
else:
print(temp, end='')
print('') # print newline
------------------------------------------------------------------------------------------------------------------------
My expected out is:
90 -> 92 -> 94 -> 95
I keep getting:
90 -> 92 -> 94 -> 95 ->
NOTE: I can't edit the last line "print('') #print newline"

Answers

Answer 1

Answer:

Following are the code to this question:

hourly_temperature = [90, 92, 94, 95]#defining a list that holds values

c= 0#defining a variable c

for temp in hourly_temperature:#defining a for loop to count list values

   c+= 1#defining c variable to increment the value of c

   for index,temp1 in enumerate(str(temp)):#defining for loop for spacing the list value

       if index == len(str(temp))-1 and c!= len(hourly_temperature):#defining if block that checks the length of list

           print(temp1,'->',end=' ')#print value

       elif c == len(hourly_temperature) and index == len(str(temp)) - 1:#defining elif block that checks the length of list

           print(temp1, end=' ')#print value

       else:#defining else block

           print(temp1, end='')#print value

Output:

90 -> 92 -> 94 -> 95  

Explanation:

In the above-given code, a list "hourly_temperature" is declared, in which an integer variable c is declared, that holds an integer value that is equal to 0, and two for loop is declared, and in the first loop is used for count list value, and inside the for loop is uses enumerate method to assigns an index for each item and use the conditional statement to check each list value and provide space in each element value.


Related Questions

An excellent website design delights its audience and is the product of innovation built on a foundation of
creative layout templates.
careful site planning.
an appealing theme.
audience feedback.

Answers

Answer:

The answer to this question is given below in the explanation section.

Explanation:

The given options to this question are:

creative layout templates. careful site planning. an appealing theme. audience feedback.

The correct answer among the given above options to this question is:

Careful Site Planning.

Because careful site planning only allows you to develop a website that will have a delightful design and will attract its audience and it is the foundation to built the product of innovation. In site planning, you plan about what would the theme of the site, layout, color, design, and know about the audience and how they will use it.

While other options are not correct because:

Layout, theme, and how to feedback the audience- all is decided and planned during careful website planning.

Answer:

B

Explanation:

Looking at the code below, what are the possible values that could be generated? (Assume Random has been imported with a new Random object).

int randomInt = rand.nextInt(2);
randomInt = randomInt + 1;
System.out.print(randomInt);

Answers

Answer:

1 or 2

Explanation:

rand.nextInt(2) generats a number between 0 and 2 ( not including 2). randomInt = randomInt + 1 adds 1 to that number.

Select all examples of proper keyboarding technique.

Look at the keys while keyboarding.
Keep your hands higher than your elbows.
Sit up straight.
Relax your fingers.
Aim to make no mistakes.

Answers

Answer:

all except keeping your hands higher than your elbows

Answer:

Sit up straight.

Relax your fingers.

Aim to make no mistakes.

Explanation:

When reading data from a URL it is good practice to use a try/except block to catch any errors that may arise. A. True B. False

Answers

Answer:

False

Explanation:

It is FALSE that When reading data from a URL it is good practice to use a try/except block to catch any errors that may arise.

This is because the "try/except" function is a python programming language function that is used in python to solve issues like race conditions, controlling errors in loops, file handling, database communication, network access, and many more.

The statement, "When reading data from a URL it is good practice to use a try/except block to catch any errors that may arise" is:

False

According to the given question, we are asked to show if the given statement is true or false about the use of a try/except block to catch errors when getting data from a URL.

As a result of this, when reading data from a Universal Resource Locator, it is not good practice to make use of a try/except block to try and catch any errors that may occur because this is a function which is used to solve race conditions and to handle error loops.

Therefore, the correct answer is False.

Read more here:

https://brainly.com/question/24131915

with your basic knowledge in basic embroidery stitches, how will you motivate your family members the importance of learning basic embroidery stitches​

Answers

What are embroidery stitches?

Do you think GE will become one of the top 10 U.S. software companies? Why or why not?

Answers

Answer: I do belive GE will be one of the top 10 software companies because each year the software side of GE is growing 20 perecnt per year which is a big deal!

Explanation:

There are different kinds of firms. I think GE will become one of the top 10 U.S. software companies. The world is gradually turning to the production of electric cars and much more appliances and with this, I believe they would grow to the top 10 in no time.

General Electric Company (GE) is known to be one of the top American multinational conglomerate that is seen in New York State.

It has its headquartered in Boston and thy have been ranked 33rd in the 2020 ranking, among the Fortune 500 in the United States using their gross revenue.

Learn more about General Electric Company from

https://brainly.com/question/26379157

What is the purpose of the Error Alert feature?

Answers

Answer:

When you add data validation to a cell, the Error Alert feature is automatically turned on. It blocks the users from entering invalid data in the cell.

Explanation:

There ya go.. -_-

Answer:

A) To alert the user to data entry mistakes  

Explanation:

true or false storage is a systematic series of action that a computer uses to convert input to output​

Answers

Answer

The answer is false

Code used when creating a hyperlink to a specific part of the same page.

Answers

Answer:

Give The Object Or Text You'd Like To Link To A Name.

Take That Name That You've Chosen, And  Then Now Insert It To An Opening HTML Anchor Link Tag.

Place That Complete Opening <a> Tag From Before The Text Or Object You Want To Link It To, Then Now Add A Closing </a> tag after.

(Hope this is correct and hope this helped. Sorry if I'm wrong and you get this wrong)

___________________ transmission has the advantage that it can incorporate error correction directly into the signal, which means a higher likelihood that the original data can be reproduced exactly, error-free, at the receiving end of the channel.

Answers

Answer:

Digital

Explanation:

Digital transmission has the advantage that it can incorporate error correction directly into the signal, which means a higher likelihood that the original data can be reproduced exactly, error-free, at the receiving end of the channel. Digital transmission is also called data transmission. The data transmission may be digital messages that were originated from a particular data source. The data source could be the keyboard or even be the mouse. It can also be an analog type of signal

Write two statements that each use malloc to allocate an int location for each pointer. Sample output for given program:
numPtr1 = 44, numPtr2 = 99
#include
#include
int main(void) {
int* numPtr1 = NULL;
int* numPtr2 = NULL;
/* Your solution goes here */
*numPtr1 = 44;
*numPtr2 = 99;
printf("numPtr1 = %d, numPtr2 = %d\n", *numPtr1, *numPtr2);
free(numPtr1);
free(numPtr2);
return 0;
}

Answers

Answer:

#include <stdio.h>

#include <stdlib.h>

int main(void) {

   int* numPtr1 = NULL;

   int* numPtr2 = NULL;

   /* Your solution goes here */

   numPtr1 = (int *) malloc(10);

   numPtr2 = (int *) malloc(20);

   *numPtr1 = 44;

   *numPtr2 = 99;

   printf("numPtr1 = %d, numPtr2 = %d\n", *numPtr1, *numPtr2);

   free(numPtr1);

   free(numPtr2);

   return 0;

}

Explanation:

The C library malloc function is used to assign memory locations (in bytes) to variables. It accepts the size parameter and returns a pointer to the specified variable location.

The two malloc statements above assign two memory locations 10 and 20 to the numPtr1 and numPtr2 integer variables respectively.

He should identify his various
online and offline audiences,
and how best to engage them
TRUE
FALSE​

Answers

Answer:

false, that shouldn't be a a priority to identify if they are or not.

Explanation:

For things like school, you should have a more serious:

Answers

Answer:

who and what do you mean

Explanation:

How many permutations for a 7 characters in length string, which contains all following letters R, X, S, Y, T, Z, U, has either the string 'RXS' or string 'ZU' in the 7 characters string?

Answers

Answer:

Following are the solution to this question:

Explanation:

In the following forms, RXS can appear:  

[tex]R X S \_ \_ \_ \_[/tex] it may look like that really, [tex]4 \times 3 \times 2 \times 1[/tex] forms = 24 may construct the remainder of its letters.  

[tex]\_ R X S \_ \_ \_[/tex] it may look like that really,  [tex]4 \times 3 \times 2 \times 1[/tex] forms = 24 may construct the remainder of its letters.  

[tex]\_ \_ R X S \_ \_[/tex] it may look like that really, [tex]4 \times 3 \times 2 \times 1[/tex] forms = 24 may construct the remainder of its letters.  

[tex]\_ \_ \_ R X S \_[/tex] it may look like that really,  [tex]4 \times 3 \times 2 \times 1[/tex] forms = 24 may construct the remainder of its letters.  

[tex]\_ \_ \_ \_ R X S[/tex] it may look like that really,  [tex]4 \times 3 \times 2 \times 1[/tex] forms = 24 may construct the remainder of its letters.  

And we'll have a total of [tex]24 \times 5 = 120[/tex] permutations with both the string RXS.

In the following forms, UZ can appear:

[tex]U Z \_ \_ \_ \_\ _[/tex]  They can organize your remaining 5 characters through 5 categories! Procedures [tex]= 5 \times 4 \times 3 \times 2 \times 1 = 120[/tex]

[tex]\_ UZ \_ \_ \_ \_[/tex] They can organize your remaining 5 characters through 5 categories! Procedures [tex]= 5 \times 4 \times 3 \times 2 \times 1 = 120[/tex]

[tex]\_ \_ U Z \_ \_ \_[/tex]They can organize your remaining 5 characters through 5 categories! Procedures  [tex]= 5 \times 4 \times 3 \times 2 \times 1 = 120[/tex]

[tex]\_ \_ \_ U Z \_ \_[/tex]They can organize your remaining 5 characters through 5 categories! Procedures  [tex]= 5 \times 4 \times 3 \times 2 \times 1 = 120[/tex]

[tex]\_ \_ \_ \_ U Z \_[/tex] They can organize your remaining 5 characters through 5 categories! Procedures  [tex]= 5 \times 4 \times 3 \times 2 \times 1 = 120[/tex]

[tex]\_ \_ \_ \_ \_ U Z[/tex] They can organize your remaining 5 characters through 5 categories! Procedures  [tex]= 5 \times 4 \times 3 \times 2 \times 1 = 120[/tex]

There may be [tex]120 \times 6 = 720[/tex] ways of complete permutations.

Data stored in computer systems has a high value because there is a great deal of time and effort that goes into creating an analyzing it and ________________.

Answers

Answer:

Data often has intrinsic value.

Explanation:

Data stored in computer systems has a high value because there is a great deal of time and effort that goes into creating an analyzing it and data often has intrinsic value.

Your data warehousing project group is debating whether to create a prototype of a data warehouse before its implementation. The project group members are especially concerned about the need to acquire some data warehousing skills before implementing the enterprise-wide data warehouse. What would you recommend? Explain your recommendations.

Answers

Answer:

Hmmm, what would i recommand i think you Should learn skills and become innovative  

Explanation:

Sir i'm gonna go toilet and come back

When you hear music, read a printout, or view a video, you are using a computer's

Answers

Answer:

yes

Explanation:

when you hear music or printing out something then ur probably using a device

Write, in your own words, a one-two paragraph summary on the Running Queries and Reports tutorials. Apply critical thinking and an academic writing style that demonstrates your understanding of the difference between a Microsoft Access database and an Excel spreadsheet by comparing the features of each and when they would be used as personal computer applications if applicable.

Answers

Answer:

Running queries in SQL or structured query language interacts with a relational database. It is used to create new databases and tables, read the content of the database tables, update and also delete the content.

Microsoft Access is a database software but Excel is a spreadsheet application.

Explanation:

Access databases hold large datasets that can be accessed from other platforms and generate automatic query while datasets in Excel are limited but it has comprehensive statistical tools for data analysis.

what is the main purpose of shift a key

Answers

Answer:

Hmm. It will make letters capitalized without having to press the CapsLk?

Explanation:

PLEASE PEOPLE WHO DO PYTHON PLEASE HELP ITS DUE IN THE NIGHT
if you do not know the answer please do not answer otherwise I will report.
the answer that works will get brainliest


Please help me debug this code

Answers

Answer:Yo i was just on this in codehs

Explanation:

def turn_right():

   turn_left()

   turn_left()

   turn_left()

def jump_hurdle():

   turn_left()

   move()

   turn_right()

   move()

   turn_right()

   move()

   turn_left()

while front_is_blocked():

   jump_hurdle()

   

while front_is_clear():

   move()

Which statement is true?
1)A deque is a type of collection,
2)A collection is a type of deque.
3)A list is a type of deque.
4)A deque is a type of list.

Answers

Answer:

1. A deque is a type of collection.

Explanation:

The statement that is true is as follows:

A deque is a type of collection.

Thus, the correct option for this question is A.

What is Deque?

Deque may be defined as an ordered and systematic collection of items similar to the queue. It is also known as a double-ended queue. It consists of two ends, a front, and a rear, and the items remain positioned in the collection.

According to the context of this question, a deque is a kind of collection that holds data and information identical to a queue. From here, elements can be added to or eliminated from either the front or back very efficiently.

It is also often called a head-tail linked list. Though properly this signifies specific data with appropriate structure that has been the implementation of a deque.

Therefore, a deque is a type of collection that is a true statement. Thus, the correct option for this question is A.

To learn more about Deque, refer to the link:

https://brainly.com/question/16750037

#SPJ2

When people receive benefits just because they belong to a particular identity group, this is called

Answers

Answer:discrimination

Explanation:

i can't find my grandson someone help

Answers

Answer:

i'm right here

Explanation:

grandma

Answer:

were did u lose him.

Explanation:

what is a film interpretation

Answers

Answer:

Interpretation of film language refers to an analysis using such factors as frames and shots, both denoted (literal meaning, what the audience see) and connoted (deeper meaning, what the audience may think).

Explanation:

*Hope this helps*

Answer:

What is a Film Interpretation?

Film interpretation is the process in which a film is analyzed in terms of scene, cinematography, sound (audio), graphics (video) and editing. One way of analyzing films is by shot-by-shot analysis, though it is only used for small clips or scenes.

Write a recursive function that accepts two arguments into the parameters x and y. The function should return the value of x times y. Hint: multiplication can be performed as repeated addition. Test your recursive function by prompting the user to enter values for x and y and then displaying the result. Your function should be able to handle multiplication of negative values.

Answers

Answer:

In Python:

def times(x,y):

     if y<0:

           return -1*times(x,y*-1)

     if y == 1:

           return x

     return x + times(x,y-1)

x = int(input("x: "))

y = int(input("y: "))

print(times(x,y))

Explanation:

I answered the question using Python3

This defines the function

def times(x,y):

This checks for negative values

     if y<0:

           return -1*times(x,y*-1)

This is the base case where y = 1

     if y == 1:

If true, the value of x is returned

           return x

This returns the recursion and it is repeated until the base case is achieved

     return x + times(x,y-1)

This prompts user for x value

x = int(input("x: "))

This prompts user for y value

y = int(input("y: "))

This calls the recursion and also prints the result

print(times(x,y))

Drag the tiles to the correct boxes to complete the palrs.
Match the types of letters with their descriptions.
letter of interest
cover letter
thank you letter
letter of recommendation
discusses how you meet job requirements
>
reiterates why you're the best candidate for the job
>
tells more about your character and who you are
expresses your interest in working for a company

Answers

Answer:

Letter of interest> tells you more about your character and who you are expresses your interest in working for a company

Letter of recommendation> reiterates why you're the best candidate for the job

Cover letter> discusses how you meet job requirements

Hope this helped!

Answer:

Discusses how you meet job requirements = Cover Letter

Expresses your interest in working for a company = Letter of Interest

Tells more about your character and who you are = Letter of Recommendation

Reiterates why you're the best candidate for the job = Thank You Letter

Describe one practical application of total internal reflection. ​

Answers

Answer:

The phenomenon of total internal reflection of light is used in many optical instruments like telescopes, microscopes, binoculars, spectroscopes, periscopes etc. The brilliance of a diamond is due to total internal reflection. Optical fibre works on the principle of total internal reflection.

Explanation:

thank me later but if it wrong. sorry

Assuming int numbers[SIZE]; is initialized somehow, write a function counter() that you can send the array to, plus an extra integer, and the function will return the number of times that value is found in the array. For example, if the array of SIZE 7 contains {1,2,3,2,3,3,3}then the call
x=counter(numbers,SIZE,3); will put 4 into x.

Answers

Answer:

Explanation:

The following function is written in Java and takes in three parameters the array, its size, and the chosenNumber that will be counted. The function then creates an instance variable called Counter and loops through the given array looking for the chosenNumber. Every time that the number is found in the array it adds 1 to the counter. Once the loop is done it returns the total value of the counter variable.

 public static int counter(int[] numbers, int Size, int chosenNumber) {

       int counter = 0;

       for (int x = 0; x < Size; x++) {

           if(numbers[x] == chosenNumber) {

               counter++;

           }

       }

       return counter;

   }

explain the main components of a computer system​

Answers

Answer:

A motherboard.

A Central Processing Unit (CPU)

A Graphics Processing Unit (GPU), also known as a video card.

Random Access Memory (RAM), also known as volatile memory.

Storage: Solid State Drive (SSD) or Hard Disk Drive (HDD)

Explanation:

They all work together to create a system

how and when abstract classes are used in python

Answers

Answer:

A class is called an Abstract class if it contains one or more abstract methods. An abstract method is a method that is declared, but contains no implementation. Abstract classes may not be instantiated, and its abstract methods must be implemented by its subclasses.

Explanation:

So it only makes sense to use them if you plan to have preferably more than one subclass.

Other Questions
Identify an evaluative question from the followingBlackflies are pests in west Africa that are carriers of onchocerciases (river blindness). It is estimated that the population of blackflies will increase by 25% due to precipitation changes.a.Where are the flies coming from?c.Who does the blackflies infect?b.Why will the numbers of the blackflies increase?d.Do we have blackflies in the US?Please select the best answer from the choices providedABCD 3n+14=-4 =? Please do this this right (my grade depends on it) Read this excerpt from "Myths About the Founding Fathers."The myth may have to do with a letter he wrote to his daughter about the choice of the eagle "as the representative of our country." He criticized the eagle as a rank coward . . . by no means a proper emblem. He joked that the turkey was a better choice because it would attack British troops should they invade his Farm Yard. However, he never actually formally proposed to place the turkey on our Great Seal.How do these sentences contribute to the development of ideas in the article?A. It suggests that Franklin's daughter is the source of many of the made-up stories about him.B. It proves that Franklin was the inspiration behind choosing the eagle for the Great Seal.C. It shows a known story about Franklin is based solely on a few words that were meant to be funny, not serious.D. It describes Franklin's personal view of the British compared to Americans. This is when organisms coexist by sharing different resources within their habitat. Can someone please help me with this question this is due today When an oceanic plate goes under a continental plate it is called subduction. Which formation will occur? A) deep-sea trenchesB) continental shelfC) abyssal plainsD) guyots $28.35 bill; 6.25% tax; 20% tip (before tax)please help!!!!! El ____ esta abajo. A. sotano. B.dormitorio. C. Comedor. D. bano PLEASE HELP!!!!!!!!!!There are 12 boys and 8 girls in a class.If 2 more girls join the class, what isthe new ratio for the number of boys tothe number of girls in the class? What colony reached a population of 250,000 in 1700? "Would you like to come to the fair this summer?" | asked. "You betcha!" my friend exclaimed.Which of the following best describes the meaning of "you betcha"?oYou'd better chase thatYou can back me up.You can be that wouldYou can be that would notQuestion 9You betcha means?? Name:UNIT 1. UNIT ASSESSMENTFORM A continued10 A circular coaster has a diameter of 5 inches. What is its area? Write your answer using 2. Showyour work.SOLUTION In line 19, the author refers to the Occupy Wall Street protesters as "losers." Does the author really think that the Occupy Wall Street protesters are "losers." Cite text evidence to support your answer. a carton of orange juice contains 540ml a special offer carton contains an extra 35% how many millilitres are in the special offer carton? The products of photosynthesis that begin cellular respiration are You hear: Quin est esperndote?You see: MauricioYou say: Mauricio est esperndome. Find the unknown length. Round to the neFind the unknown length. Round to the nearest tenth if necessary.\\\\\arest tenth if necessary. A table of values of a linear function is shown below. Edwards v. South Carolina is significant because it limited states' ability toO protect protestors.restrict the freedom of assembly.O convict criminals.restrict the freedom of the press. A .cache is made up of _____ , each of which stores a block along with a tag and possibly a valid/dirty bit