Write a loop to populate the list user_guesses with a number of guesses. The variable num_guesses is the number of guesses the user will have, which is read first as an integer. Read integers one at a time using int(input()). Sample output with input: '3 9 5 2' user_guesses: [9, 5, 2]

Answers

Answer 1

Answer:

num_guesses = int(input())

user_guesses = []

for i in range(num_guesses):

    x = int(input())

    user_guesses.append(x)

   

print(user_guesses)

Explanation:

This solution is provided in Python

This line prompts the user for a number of guesses

num_guesses = int(input())

This line initializes an empty list

user_guesses = []

This loop lets user input each guess

for i in range(num_guesses):

This line takes user input for each guess

    x = int(input())

This appends the input to a list

    user_guesses.append(x)

This prints the user guesses    

print(user_guesses)


Related Questions

one effective way to protect my bank account is to suspend my account logon if i fail to provide the correct password in 44 trials.

Answers

One effective way to protect my bank account is to suspend my account logon if I fail to provide the correct password in 44 trials: False.

What is a password?

In Computer technology, a password can be defined as a string of characters, phrase or word that is designed and developed to distinguish an unauthorized user from an authorized user, especially through an identification and authentication process.

As a safety precaution, end users must ensure that all of their passwords meet the minimum requirements such as the following:

Password combination.Number of trials.Password minimum length.Password maximum age.

Generally speaking, the maximum number of times that an end user can enter a wrong password is three (3) times, rather than 44 times.

Read more on password here: brainly.com/question/19116554

#SPJ1

Complete Question:

One effective way to protect my bank account is to suspend my account logon if I fail to provide the correct password in 44 trials. True or False.

In 2019, the tuition for a full time student is $7,180 per semester. The tuition will be going up for the next 7 years at a rate of 3.5% per year. Write your program using a loop that displays the projected semester tuition for the next 7 years. You may NOT hard code each years tuition into your program. Your program should calculate the tuition for each year given the starting tuition in 2019 ($7, 180) and the rate of increase (3.5%). You should then display the actual year (2020, 2021, through 2026) and the tuition amount per semester for that year

Answers

Answer:

In Python:

tuition = 7180

year = 2019

rate = 0.035

for i in range(2019,2027):

   print(str(year)+": "+str(round(tuition,2)))

   tuition = tuition * (1 + rate)

   year = year + 1

   

Explanation:

This initializes the tuition to 7180

tuition = 7180

This initializes the year to 2019

year = 2019

This initializes the rate to 3.5%

rate = 0.035

This iterates through years 2019 to 2026

for i in range(2019,2027):

This prints the year and tuition

   print(str(year)+": "+str(round(tuition,2)))

This calculates the tuition

   tuition = tuition * (1 + rate)

This increments year by 1

   year = year + 1

b) What is the use of output devices? ​

Answers

Answer:

It is used to send data from a computer to another device or user.It converts information into a human-readable form.
An output device is any hardware device used to send data from a computer to another device or user.

You are a systems analyst. Many a time have you heard friends and colleagues complaining that their jobs and businesses are being negatively impacted by e-commerce. As a systems analyst, you decide to research whether this is true or not. Examine the impact of e-commerce on trade and employment/unemployment, and present your findings as a research essay.

Answers

E-commerce, the online buying and selling of goods and services, has significantly impacted trade, employment, and unemployment. This research essay provides a comprehensive analysis of its effects.

What happens with  e-commerce

Contrary to popular belief, e-commerce has led to the growth and expansion of trade by breaking down geographical barriers and providing access to global markets for businesses, particularly SMEs. It has also created job opportunities in areas such as operations, logistics, customer service, web development, and digital marketing.

While certain sectors have experienced disruption, traditional businesses can adapt and benefit from e-commerce by adopting omni-channel strategies. The retail industry, in particular, has undergone significant transformation. E-commerce has empowered small businesses, allowing them to compete with larger enterprises and fostered entrepreneurial growth and innovation. However, there have been job displacements in some areas, necessitating individuals to transition and acquire new skills.

Read mroe on  e-commerce here  https://brainly.com/question/29115983

#SPJ1

How does a file reader know where one line starts and another ends?

Every line in a text file has a hidden EOL (end of line) set of characters.

Python knows how many characters to expect in a line.

The last item in a line of data does not have a comma after it.

Every line starts with a BOL (beginning of line) character.

Answers

Answer:

Every line in a text file has a hidden EOL (end of line) set of characters.

Explanation:

The EOL characters are CR+LF, a.k.a. carriage return (13) + line feed (10).

Some text files only use LF characters to denote a line ending.

My best memory was the first time I ever saw a movie like Despicable Me with my father, which was at a movie theater.

Answers

Answer: That sounds really nice. I used to go see movies with my dad all the time too. One of my favorites was Monsters vs. Aliens

Explanation:

PROM in Computer science​

Answers

A programmable read-only memory (PROM) is a form of digital memory where the setting of each bit is locked by a fuse or antifuse. (eFUSEs can also be used) It is one type of ROM (read-only memory). The data in them are permanent and cannot be changed.

Esquema de reglas css

Answers

The CSS rules schema is a set of guidelines and syntax used to write CSS code for styling HTML documents, including selectors, declarations, and values. It helps ensure consistency and readability in code.

Why is  CSS rules schema important?

CSS rules schema is important because it provides a systematic and structured approach to designing and formatting web pages. It helps developers maintain consistency in their styling, which is important for usability and user experience.

A consistent and well-organized CSS rules schema can also make it easier to maintain and update a website, as changes can be made quickly and efficiently. Note as well that, it can improve the accessibility and search engine optimization (SEO) of a website by ensuring that the HTML is properly formatted and organized.

Learn more about CSS Rules Schema:
https://brainly.com/question/17584518
#SPJ1

Answer for 3 and 4 please

Answer for 3 and 4 please

Answers

Answer:

3. D: px

4. B: web page

Explanation:

All font sizes are measured in px unless specified otherwise (in em's for example).

The correct answer is a web page because itself is a unique file that displays multimedia components.

Answer:

Q3: Font size is measured in pt (point)  which can be converted into centimeter(cm)

Q4: The answer is webpage

Explanation:

Q3: Font size is measured in pt (point)  which can be converted into centimeter(cm)

Q4: A unique file with unique name and address is  a webpage.

because webserver and browser are software while website is collection of webpages.

Qa Defind Networking and its importance to an organization. ​

Answers

Networking is crucial for an organization as it enables effective communication, collaboration and resource sharing among employees and external stakeholders.

Why is networking important for organizational success?

Networking plays a vital role in organizational success by fostering connections and facilitating the flow of information and resources. It allows employees to collaborate, share knowledge, and leverage each other's expertise leading to increased productivity and innovation.

But networking extends beyond the organization, enabling partnerships, customer acquisition, and business opportunities. By establishing a robust network, organizations can tap into a diverse pool of talents, stay updated with industry trends and build a strong reputation within their respective sectors.

Read more about Networking

brainly.com/question/1326000

#SPJ1

Write a Python programs to do frequency counting of the sum of two dice. Your function should accept an integer n parameter to run n trials (i.e., multiple rollings of the two dice); You can use the Python function randrange(1, 7) to simulate the roll of one die; After running the n trials, your function should return the sum of two dice that occurs most frequently.

Answers

Answer:

Explanation:

The following program uses Numpy import to detect the frequency of all the elements in an array and ouput the one that appears the most. The function creates random dice rolls and adds them to the array, looping the number of times that the trials parameter states. Then finally printing out the original array and the sum that appeared the most frequently.

from random import randrange

import numpy as np

def highestFrequency(trials):

   products = []

   for x in range(trials):

       product = randrange(1, 7) * randrange(1, 7)

       products.append(product)

   x = np.array(products)

   print("Original Array: " + str(list(products)))

   print("Most frequent value in the above array:")

   print(np.bincount(x).argmax())

highestFrequency(7)

Write a Python programs to do frequency counting of the sum of two dice. Your function should accept

Which option should you select to accept a tracked change?
OA. Accept
OB.
Reject
O c.
Review
OD
Delete

Answers

Accept is the answer

Using the drop-down menu, complete the following questions based on your knowledge of variables. is a value that can be used only from a block of code where it is declared. is a storage location for a value. is a value that can be called and used anywhere.​

Using the drop-down menu, complete the following questions based on your knowledge of variables. is a

Answers

Answer:

c a d

Explanation:

Answer:

It is

A

C

B

Explanation:

Got it right on edge

what does libtard mean

Answers

Answer:

Normally, It is a person of the opposite political belief that thinks that liberals/leftists are stupid for what they say. Most of the time, this "insult" is mostly used by Right-Winged Conservitives or used as a joke by leftists to show how funny it is when conservitives say it.

Answer:

it means a liberal r3tard. lib-tard

Explanation:

Please help! I need to submit this quick!

Please help! I need to submit this quick!

Answers

Answer:

B, C, A

Explanation:

i think those are right

Order the steps to successfully create a data table.
Answer: Write the formula used to create table values
Select the range
Select the Data tab and What-If Analysis
Select Data Table
Select the values for row/column input.

Answers

Here are the steps to successfully create a data table:

Select the range.Select the Data tab and What-If Analysis.Select Data Table.Write the formula used to create table values.Select the values for row/column input.

How to create the data table

For achieving the desired outcome of generating a data table, it is suggested to adhere to the following measures:

Choose the cells group in which you intend to generate the data table. Include both the cells for input and presentation of results in the specified range.

Provide the equation that you intend to apply for computing the figures enlisted in the data chart. This equation must refer to the designated cells and yield the intended outcome.

Access the What-If Analysis feature by navigating to the Data tab within your spreadsheet program. To access the menu, simply click on it.

Choose the Data Table option from the What-If Analysis menu. This action will trigger the appearance of a dialog box or prompt that will require you to input the required details.

Determine the desired input values for either the row or the column in the data table dialogue box. The table's outcomes will be computed based on these values.

By adhering to these guidelines, you can produce a chart of data that exhibits computed figures derived from various input situations, aiding you in scrutinizing and comprehending the ramifications of different factors on your data.

Read more about data tables here:

https://brainly.com/question/32534586

#SPJ1

How can I get more views on my you tube channel "Braeden Eischen" without paying anything
P.S. this is for media-tech so don't report me

Answers

I’m just post video and there

3
Drag each label to the correct location on the image.
An organization has decided to initiate a business project. The project management team needs to prepare the project proposal and business
justification documents. Help the management team match the purpose and content of the documents.
contains high-level details
of the proposed project
contains a preliminary timeline
of the project
helps to determine the project type,
scope, time, cost, and classification
helps to determine whether the
project needs meets business
needs
contains cost estimates,
project requirements, and risks
helps to determine the stakeholders
relevant to the project
Project proposal
Business justification

Answers

Here's the correct match for the purpose and content of the documents:

The Correct Matching of the documents

Project proposal: contains high-level details of the proposed project, contains a preliminary timeline of the project, helps to determine the project type, scope, time, cost, and classification, helps to determine the stakeholders relevant to the project.

Business justification: helps to determine whether the project needs meet business needs, contains cost estimates, project requirements, and risks.

Please note that the purpose and content of these documents may vary depending on the organization and specific project. However, this is a general guideline for matching the labels to the documents.

Read more about Project proposal here:

https://brainly.com/question/29307495

#SPJ1

QuickBooks Learn & Support 888-210-2883 - QuickBooks - Intuit,,,

Answers

QuickBooks Learn & Support 888-210-2883 - QuickBooks - Intuit,,,

Delia is a revered photographer who is consistently hired and booked thanks to her inherent ability to tell a visual story. She is designing new business cards to pass out to potential clients. What title would be MOST appropriate?

Still Life Photographer

Photographic Narrative Teller

Expressive Artist

Portrait Photographer

Answers

Answer:

D

Explanation:

Portrait Photographer is a  revered photographer who is consistently hired and booked thanks to her inherent ability to tell a visual story.

What is Bussiness cards?

Additionally, you may order folded business cards. In this manner, you can add more details to your business card. Fold the long or short side of your business card.

Your business card can be folded nicely because of the center crease line. Additionally ideal for use as an appointment or loyalty card.

With our drag-and-drop business card creator, anyone can create beautiful business cards without any prior design knowledge. For this reason, Canva's business card creator is trusted by millions of people worldwide to make them appear professional.

Therefore, Portrait Photographer is a  revered photographer who is consistently hired and booked thanks to her inherent ability to tell a visual story.

To learn more about business card, refer to the link:

https://brainly.com/question/28850206

#SPJ2

Integers limeWeight1, limeWeight2, and numKids are read from input. Declare a floating-point variable avgWeight. Compute the average weight of limes each kid receives using floating-point division and assign the result to avgWeight.

Ex: If the input is 300 270 10, then the output is:

57.00

how do I code this in c++?

Answers

Answer:

Explanation:

Here's the C++ code to solve the problem:

#include <iostream>

using namespace std;

int main() {

  int limeWeight1, limeWeight2, numKids;

  float avgWeight;

 

  cin >> limeWeight1 >> limeWeight2 >> numKids;

 

  avgWeight = (float)(limeWeight1 + limeWeight2) / numKids;

 

  cout.precision(2); // Set precision to 2 decimal places

  cout << fixed << avgWeight << endl; // Output average weight with 2 decimal places

 

  return 0;

}

In this program, we first declare three integer variables limeWeight1, limeWeight2, and numKids to hold the input values. We also declare a floating-point variable avgWeight to hold the computed average weight.

We then read in the input values using cin. Next, we compute the average weight by adding limeWeight1 and limeWeight2 and dividing the sum by numKids. Note that we cast the sum to float before dividing to ensure that we get a floating-point result.

Finally, we use cout to output the avgWeight variable with 2 decimal places. We use the precision() and fixed functions to achieve this.

Final answer:

The student can code the calculation of the average weight of limes that each kid receives in C++ by declaring integer and double variables, getting input for these variables, and then using floating-point division to compute the average. The result is then assigned to the double variable which is displayed with a precision of two decimal places.

Explanation:

To calculate the average weight of limes each kid receives in C++, declare three integers: limeWeight1, limeWeight2, and numKids. Receive these values from input. Then declare a floating-point variable avgWeight. Use floating-point division (/) to compute the average weight as the sum of limeWeight1 and limeWeight2 divided by the number of kids (numKids). Assign this result to your floating-point variable (avgWeight). Below is an illustrative example:

#include

  cin >> limeWeight1 >> limeWeight2 >> numKids;

}

Learn more about C++ Programming here:

https://brainly.com/question/33453996

#SPJ2

The address of a cell is created by the intersection of
the
of the cell.

Answers

The address of a cell is created by the intersection of the respective column and row.

Additional information about "cell" is as follows:

Cells are the tens of thousands of rectangles that each worksheet is made up of. When a row and a column come together or intersect, the location is known as a cell.Columns are denoted by A, B, and C, and rows are denoted by digits. Each cell has a distinct name that comes after its column and row, also known as a cell address. Since the selected cell intersects column C and row 5, the cell address in the example below is C5.Each entry you make into a spreadsheet is stored in a cell. A cell can contain a variety of content types, including text, formatting, formulas, and functions.Cell formatting options: Cell formatting options can change how dates, numbers, and characters are displayed. A couple of percentage examples are 0.15 and 15%. We can even change a cell's text or background color.

To know more about Cell Address, visit: https://brainly.com/question/28461824

#SPJ9

Write a program that asks the user to enter the number of calories and fat grams in a food item (Use the Scanner class for keyboard input). The program should display the percentage of the calories that come from fat. One gram of fat has 9 calories.

Answers

Answer:

Explanation:

The following code is written in Java and takes the calories and fat grams, then turns the fat grams into calories and adds them to the rest of the calories. Then it calculates the percentage of fat grams in the food item by dividing the fat gram calories by the total amount of calories in the food item. Finally, it prints out the exact percentage result.

public static void main(String[] args) {

       Scanner in = new Scanner(System.in);

       System.out.println("Enter number of Calories");

       double calories = Integer.parseInt(in.nextLine());

       System.out.println("Enter number of Fat");

       double fat = Integer.parseInt(in.nextLine());

       double totalCalories = (fat*9) + calories;

       double fatPercentage = (fat*9) / totalCalories;

       

       System.out.println("Percentage of Fat: " + fatPercentage + "%");

   }

Which of these agents of education empowers the other..........
A. Family
B. SCHOOL
C. Media
D. Church

Answers

Answer:

B. school

Explanation:

Because the school is where you learn and gain knowledge

B. School.

Explanation; Education is the main factor in school, Therefore B seems like the only right answer. Hope this helped:)

Write a program that takes in a positive integer as input, and outputs a string of 1's and 0's representing the integer in binary. For an integer x, the algorithm is:
As long as x is greater than 0
Output x % 2 (remainder is either 0 or 1)
x = x // 2
Note: The above algorithm outputs the 0's and 1's in reverse order. You will need to write a second function to reverse the string.
Ex: If the input is:
6
the output is:
110
Your program must define and call the following two functions. The function integer_to_reverse_binary() should return a string of 1's and 0's representing the integer in binary (in reverse). The function reverse_string() should return a string representing the input string in reverse.
def integer_to_reverse_binary(integer_value)
def reverse_string(input_string)
Note: This is a lab from a previous chapter that now requires the use of a function.

Answers

Answer:

#include <iostream>//header file

#include <string>//header file

using namespace std;

string integer_to_reverse_binary(int integer_value)//defining a method integer_to_reverse_binary  

{

   string ret = "";//defining string variable

   while (integer_value > 0) //using while loop to check integer_value value is greater than 0

   {

       ret += '0' + (integer_value % 2);//adding zeros in remainder value

       integer_value /= 2;//holding quotient value

   }

   return ret;//return string value

}

string reverse_string(string input_string)//defining a method reverse_string that holds a parameter user_String  

{

   string result;//defining a string variable  

   for (int i = 0; i < input_string.length(); ++i)//use for loop to calculate value  

   {

       result += input_string[input_string.length()-i-1];//add value in result variable

   }

   return result;//result result variable value

}

int main()//defining main method  

{

   int num;//defining integer variable

   string str;//defining string variable

   cin >> num;//input num value

   str = integer_to_reverse_binary(num);//use str variable to call the integer_to_reverse_binary method

   cout << reverse_string(str) << endl;//printing the reverse_string method value

   return 0;

}

Output:

6

110

Explanation:

In this code two string method "integer_to_reverse_binary and reverse_string" is defined that holds one parameter "integer_value and input_string".

In the first method a string variable is defined, that use the while loop to check integer value is greater than 0 and add zeros in the value and return its value as a string.

In the second it reverse the string value and store into the result variable, and in the main method the "num and str" variable is defined, and in the num it takes integer value and pass into the above method and print its return value.    

Hello I take computer science and i just wanted to know if somone could do this and explain to me how. thank you!

(100 points)

Hello I take computer science and i just wanted to know if somone could do this and explain to me how.

Answers

Answer:

We are provided with three sets of assembly language instructions, and for each set, we need to understand the order in which memory addresses and contents are accessed.

Diagram A:

LDD 106

This instruction means "Load Direct to the accumulator from address 106." The accumulator is a special register in the processor used to hold data for arithmetic or logical operations. In this case, the value stored at memory address 106 (which is 114) will be loaded into the accumulator.

Diagram B:

LDI 104

This instruction means "Load Indirect to the index register from address 104." The index register is another special register in the processor, typically used for memory addressing calculations. Here, the value stored at memory address 104 (which is 100) will be loaded into the index register.

Diagram C:

LDR #3

This instruction means "Load immediate value 3 into the accumulator." Instead of accessing memory, this instruction loads an immediate value (in this case, 3) directly into the accumulator.

LDX 101

This instruction means "Load Direct to the index register from address 101." The value stored at memory address 101 (which is 104) will be loaded into the index register.

To summarize, each diagram represents a different set of assembly language instructions, and the memory addresses and contents accessed are as follows:

Diagram A:

Address 106: Content 114 (loaded into the accumulator)

Diagram B:

Address 104: Content 100 (loaded into the index register)

Diagram C:

No memory address accessed for LDR #3 (immediate value 3 loaded into the accumulator)

Address 101: Content 104 (loaded into the index register)

I hope my explanation has made it easier for you to comprehend these assembly language instructions and the memory accesses they need.

Sam will be using several chemicals for processing photographic negatives and prints. What must he do before he uses darkroom chemicals?

А.thicken them

В.concentrate them

C.mix them together

D.dilute them

Answers

Answer:

dilute them

Explanation:

Question 10 (5 points)
Which of the following represents the PC speed rating of a DDR4-1600 SDRAM
DIMM?
OPC4-12800
OPC4-6400
PC4-200
PC-200

Answers

Answer:

The PC speed rating of a DDR4-1600 SDRAM DIMM is PC4-12800.

Explanation:

Which statement best describes which options should be used when printing envelopes?
A.)the address should always be filled out and the return address and postage will demand on the situation.
B.) The address and return address should always be filled out in the postage will depend on the situation.
C.) The return address should always be filled out in the address and postage will depend on the situation.
D.) The postage should always be selected in the return address and address will depend on the situation.

Answers

A or D I’m not too sure tbh but good luck

Answer:

B

Explanation:

ed 4. As a network administrator of Wheeling Communications, you must ensure that the switches used in the organization are secured and there is trusted access to the entire network. To maintain this security standard, you have decided to disable all the unused physical and virtual ports on your Huawei switches. Which one of the following commands will you use to bring your plan to action? a. shutdown b. switchport port-security c. port-security d. disable

Answers

To disable unused physical and virtual ports on Huawei switches, the command you would use is " shutdown"

How doe this work?

The "shutdown" command is used to administratively disable a specific port on a switch.

By issuing this command on the unused ports, you effectively disable those ports, preventing any network traffic from passing through them.

This helps enhance security by closing off access to unused ports, reducing the potential attack surface and unauthorized access to the network.

Therefore, the correct command in this scenario would be "shutdown."

Learn more about virtual ports:
https://brainly.com/question/29848607
#SPJ1

Other Questions
In the Pinto case, Ford relied on which approaches to ethical reasoning to decide on a course of action with respect to the faulty gas tank placement: Which substance is polar?a. CO2b. CH2Cl2c. BF3d. O2 bernsteins west side story updates the feud between the capulets and the montagues to a fued between can you please help me First-person narrators tell stories from only their perspective and not those of others. By default, they are ________.(1 point) An alpha particle (charge = +2.0e) is sent at high speed toward a tungsten nucleus (charge = +74e). What is the electrical force acting on the alpha particle when it is 2.0 10 m from the tungsten nucleus? Charge of an electron = -1.6 x 10 C. Coulombs constant = 8.99 x 10 Nm/C Thomas Jefferson believed firmly that the Anti-Federalists and farmers were the best future of the United States True Or Flase What is the slope intercept equation for the line below? Pearl Company had 190,800 ordinary shares outstanding on December 31, 2022. During the year 2023 , the company issued 8,000 shares on May 1 and retired 14,000 shares on October 31. For the year 2023, Pearl Company reported net income of 274,100 after a loss on discontinued operations of 40,400 (net of tax). What earnings per share data should be reported at the bottom of its income statement? Identifying majors with specific language and mathematics requirements using the degree search selection filters help you solve what type of business problem?. Read "The Southern Refugee.What does this poem express about the individuals search for home?A. Losing a home can be a distressing experience.B. Leaving a home molds and strengthens a persons personality.C. People can cope with a lost home by thinking about it often.D. A home is vital to shaping a persons upbringing.The Southern Refugeeby George Moses HortonWhat sudden ill the world await, From my dear residenceI must deplore the bitter fate, To straggle from my native home.The verdant willow droops her head And seems to bid a fare thee well;The flowers with tears their fragrance shed Alas! Their parting tale to tell.Tis like the loss of Paradise Or Edens garden left in gloom,Where grief affords us no device, Such is thy lot, my native home.I never, never shall forget, My sad departure far away,Until the sun of life is set, And leaves behind no beam of day.How can I from my seat remove And leave my ever devoted homeAnd the dear garden which I love, The beauty of my native home.Alas! sequestered, set aside, It is a mournful tale to tell; Tis like a lone departed bride That bade her bridegroom fare thee well.I trust I shall soon dry the tear And leave forever hence to roamFar from a residence so dear The place of beautymy native home. You decide to roll a 0.10-kgkg ball across the floor so slowly that it will have a small momentum and a large de Broglie wavelength.If you roll it at 1.4103 m/s, what is its wavelength?Express your answer to two significant figures and include the appropriate units. What generates a profit? question 4 a split-brain patient is presented with two images: a key is presented on her left side, and a ring is presented on her right side. the patient is asked to report what she sees. how will she respond? 1o4 Fahrenheit is equal to the principle of universalizability does not account for the immorality ofa.cheating on one's taxes.b.slavery.c.principled fanatics.d.lying. The glass pane of a window has a ratio of height to width of 4:3. The frame adds 12 inches to the height and 6 inches to the width. Area = (4x+12) (3x + 6) Which polynomial expression represents he area of the window, including the frame, in square inches? O 12x + 12x + 18 12x 12x + 72 O 12x + 60x + 72 12x + 60x18 Create a class to model the toss of a coin. It should have the following attributes and methods.a sideup attribute which is a string and may have the value "Heads" or "Tails"an __init__ method that initializes sideup to "Heads"a toss method that randomly sets the value of sideup to either "Heads" or "Tails"an accessor method get_sideup(self) that returns the value of the sideup attributea __str__ method that prints out the state of a Coin objectcreate 5 Coin objects and add them to a listiterate through the list and print out the state of each object (instance).Please help in Python. Thank you! Shelly bought 53.6 gallons of orange juice and used 18.3 gallons of it to make popsicles how much orange juice dose shelly have left 2.8.57Let f(x) = - 5x-1, h(x) = -x-2.Find (f o h)(3)(foh)(3) =