Write a script which: Uses the input function to get any number and store it in a variable named my_number Create a new variable named calculation which equals my_number plus 9 Multiply calculation by 2 Subtract 4 from calculation Divide calculation by 2 Subtract my_number from calculation Print calculation

Answers

Answer 1
Answer:

# Using the input function

# Prompt the user to input some number

# Convert the input to a float - this will cater for both floating

# numbers and integers

# Store the result in a variable called my_number

my_number = float(input('Please enter some number '))

#Create a variable named calculation which equals my_number plus 9

calculation = my_number + 9

#Multiply calculation by 2

calculation *= 2

#Subtract 4 from calculation

calculation -= 4

#Divide calculation by 2

calculation /= 2

#Subtract my_number from calculation

calculation -= my_number

#Print calculation

print('calculation = ' + str(calculation))

Sample Output

>> Please enter some number 8

calculation = 7.0

Explanation:

The above program has been written in Python and it contains comments explaining each line of the code. Please go through the comments. A sample output has also been provided.


Related Questions

What is generalization error in terms of the SVM? a. How accurately the SVM can predict outcomes for unseen data b. How far the hyperplane is from the support vectors c. The threshold amount of error in an SVM

Answers

Answer:

a. How accurately the SVM can predict outcomes for unseen data

Explanation:

Generalization Error in terms of the SVM which is an acronym for Support Vector Machine, that deals with a form of administered learning standard, is a criterion of how accurately the Support Vector Machine algorithm can make a forecast of concluding information for formerly hidden data.

Hence, in this case, the correct answer is option A, which is Generalization error in terms of the SVM is "How accurately the SVM can predict outcomes for unseen data"

It should be noted that generalization error in terms of the SVM base on How accurately the SVM can predict outcomes for unseen data.

Generalization error can be regarded as the error which serves as a measure of how accurately an algorithm is, when predicting outcome values as regards the previously unseen data.

Therefore, option A is correct, generalization error serves as how accurately the SVM can predict outcomes for unseen data.

Learn more about generalization error at;

https://brainly.com/question/17220524

English language readers are accustomed to seeing paragraphs that are _____.
a. right-aligned.
b. center-aligned.
c. justified.
d. left-aligned.

Answers

Answer:

d. left-aligned

Explanation:

They are accustomed to seeing paragraphs that are left aligned. The left alignment is the most common type of alignment. This type of text format aligns text at the left-hand side of a page or paper. In areas areas or countries were english is spoken like the United States, text editors are usually in left alignment. The reason for this is because they read from left to right in these countries.

Which two statements are true about the Data Sync functionality? (Choose two.)
A. Data Sync can create and manage surrogate keys in target tables.
B. Data Sync is the only mechanism available in Oracle Analytics Cloud Standard Edition for loading data into DBaaS tables.
C. To manage extractions and loads from cloud-based sources, Data Sync can invoke the REST APIs of the Oracle Database Cloud Service as well as the Oracle
D. Data Sync cannot load incremental source insertions and updates; only full refresh loads are supported.

Answers

B and C are the correct answers

The statements 'Data Sync can create and manage surrogate keys in target tables' and 'Data Sync can invoke the REST APIs of the Oracle Database Cloud Service as well as the Oracle' are TRUE (Option A and C).

Data synchronization (Data Sync) refers to the process of synchronizing data between different devices, as well as the automatic update of the changes.

Oracle database cloud service refers to a cloud category that reaps the advantages of Platform as a Service (e.g., subscription-based services, self-service access to different elastic and reliable cloud environments, etc).

This service (Oracle Database Cloud Service) can support different Oracle database versions.

In conclusion, the statements 'Data Sync can create and manage surrogate keys in target tables' and 'Data Sync can invoke the REST APIs of the Oracle Database Cloud Service as well as the Oracle' are TRUE (Option A and C).

Learn more in:

https://brainly.com/question/22982136

What is the quickest way to remove filters from a worksheet?

Answers

Answer:If you want to completely remove filters, go to the Data tab and click the Filter button, or use the keyboard shortcut Alt+D+F+F.

The quickest way to remove filters from a worksheet is to Alt+D+F+F.

What is a worksheet?

Worksheets often refer to a paper that is blank with workouts or questionnaires on it that students must accomplish & record their responses on. They are utilized in most courses to some extent, and there are two main varieties in the lesson plan where things are often used.

Choose the Sort & Filter group, then click the Refine button. Click Clear Filter after selecting the tab. Removal of All Filters while selecting the worksheet. Designate Clear Filter after clicking each filter.

Columns in a spreadsheet allow you to enter facts and do calculations. Columns and rows have been used to arrange the cells. A textbook is where a workbook always is kept. Many worksheets may be found in a workbook.

Learn more about the worksheet, here:

https://brainly.com/question/13129393

#SPJ2

A collection of code makes up what

Answers

Answer:

In computing, source code is any collection of code, with or without comments, written using a human-readable programming language, usually as plain text.

Explanation:

source code may be interpreted and thus immediately executed.

____ is the number of processes that are completed per time unit.
A) CPU utilization
B) Response time
C) Turnaround time
D) Throughput

Answers

Answer: D, Throughput

Explanation: Throughput is a measure of how many units of information a system can process in a given amount of time.

Jason needs to design the colors for a web site that make it easy to read. Which should he consider using?
O Contrasting background and text
Dark background and dark text
Dark background and light text
Similar background and text​

Answers

Answer: Dark background and light text.

Explanation:

Assuming when you mean by "light text", you mean by white text. This should be able to be readable by users visiting the site.

Answer:

Contrasting background and text

Explanation:

When selecting a color scheme for a website, designers often choose complementary colors that keep the visitor on the website.

Your web page should have three main colors: one for the background, one for the text, and one for the headings. The colors you select should complement each other and be on opposite sides of the color wheel.

Also i got it right on my test!

A company has recently learned of a person trying to obtain personal information of employees illegally. According to which act will be the person punished?

I-SPY
CFAA
Digital Millennium Act
SOPA

Answers

Answer:

Digital Millennium Act

Explanation:

The Digital Millennium Copyright Act  is a United States copyright law that implements two  treaties of the World Intellectual Property Organization . The aim of this ACT is to protect the rights of both copyright owners and consumers. The law complies with the World Intellectual Property Organization  Copyright. The law has two basic functions. First, it protects copyright owners by providing them with a mechanism to enforce their rights without having to directly sue the infringer

Hope that helped.

The area tht includes all objects and elements in a chart in excel is called??

Answers

Answer:

Chart area

i hope this helps

New Top Level Domains (TLDs) are coordinated by:_______.

Answers

ICANN is the answer

______ allows a thread to run on only one processor.
A) Processor affinity
B) Processor set
C) NUMA
D) Load balancing

Answers

Your answer will be A.

If there is more than one speaker, how should they be all noted?
a.) Speaker X: and the editor will correct it.
b.) Speaker 1, Speaker 2, eat cetera.
c.) Speaker 1, Speaker 2, et cetera. if you can distinguish a speaker’s role in the conversation, you should make it as descriptive as possible.

Answers

Answer:

I think is C but I'm not completely sure

List at least three kinds of information stored in a computer.

Answers

Answer:

1)Numbers

2)Text

3) Graphics

Explanation:

three kinds of information stored in a computer are

1)Numbers

2)Text

3)Graphics

What is a name used to identify a specific location and value in memory?a. Variable b. Operator c. Control structure d. Object

Answers

Answer:

(a) Variable

Explanation:

In the programming world, a variable is used to store data that can be referenced and modified in a computer program. It typically refers to the label for the location (in memory) of a particular data used in programs. For example;

var b = 12.

This implies that the value 12 is stored in a location in memory that is labeled as b. Anytime the value 12 is needed either for retrieval or modification purposes, it can be referenced by simply calling the variable b.

A blank is a memory location whose value cannot change during the execution of the program

Answers

Answer:

Named Constant

Explanation:

blank is a memory location whose value cannot change during the execution of the program is Named Constant

Summarize/discuss at least 6 key things that influence one's Design choices.

Answers

Answer:

Six factors that influence one's design choices in data visualization are;

1. subject-matter appeal

2. personal taste

3. attitude and emotion

4. dynamic of need

5. what they need to know

6. subject-matter knowledge.

Explanation:

The subject-matter appeal is the interest the viewers show to the data presented to them, if it really relates to their interest.

Personal taste is the theme from color to the graphic tool used to display the data. Dynamics of need depicts the viewers' choice to know the data they are presented with.

Subject-matter knowledge is the prior knowledge of the data presented, do they have prior knowledge or not.

What they need to know is a factor that helps to answer the viewers' question, does this have the knowledge I seek?

what are 6 steps to take to figure out what's wrong with your computer?
this would be a big help thx

Answers

Answer

located the problem Go to system settings Try to uninstall and install the programTry troubleshooting the program Try contacting the device admin Read the user Manuel before try to do anything on the system

Which of these are examples of a Single Sign-On (SSO) service?
A. Kerberos.
B. Relying Parties.
C. OpenID.
D. Tokens.

Answers

Kerberos and OpenID are SSO Services.

It should be noted that examples of a Single Sign-On (SSO) service are

Kerberos.OpenID.

According to the question, we are to discuss the examples of Single Sign-On (SSO) service and how it works in term of the user experience.

As a result if this , we can explain Single sign-on (SSO) as session that is required when authentication service  us been need by the user, it helps the user have one set of login credentials

Therefore, examples of a Single Sign-On (SSO) service is OpenID.

Learn more about Single Sign-On (SSO) service at;

https://brainly.com/question/13171394

An operating system is an example of _______. The hard drive, keyboard and monitor are example of_______.​

Answers

Answer:

Software

Hardware

Explanation:

Some might consider careers in the Construction industry to be quite flexible. Which statement supports this claim? Employees can work for themselves, big companies, or the government. Employers often release their staff when projects end. Employees work outdoors in dirty and dangerous environments. Employers can train staff so they work in both Design and Maintenance.

Answers

Answer:

The answer is probably A.

Employees can work for themselves, big companies, or the government.

Explanation:

Answer:

The answer is A

Explanation:

I took the test on edgenuity

Words or symbols that help you narrow down your search are called:
a) search tools
b) filters
c)
search operators
d) hashtags

Answers

Answer:

c) search operators

Explanation:

Words or symbols that help you narrow down your search are called search operators. This ultimately implies that, search operators are commands and special characters (words or symbols) which help users to filter and refine their search engine results by making the search more precise and specific in nature. Thus, search operators only provide search engine results that are relevant to what a user is searching for or it narrow down the focus of a search.

Hence, search operators comprises of commands and special characters (words or symbols) such as AND, OR, NOT, "", -, +, *, .., :, etc used for narrowing down search engine results.

For instance, typing "file.mp3" in a search engine would only present results that are in mp3 formats.

Which of the following are part of personal growth? Check all of the boxes that apply.

Answers

Answer:

all of them except avoiding setting goals

Explanation:

Part of personal growth increasing self-awareness, improving quality of life, and developing skills. The correct options are a, b, and d.

What is personal growth?

Understanding yourself and pushing yourself to realize your full potential are both parts of the process of personal growth. It entails continuously considering your identity and your plans for getting there.

Utilize your time management abilities more effectively, and take better care of yourself. Stop putting things off. Set boundaries for your use of social media. Increase the amount of self-care activities you do each day.

The main components of personal growth are increasing awareness of oneself, enhancing living quality, and increasing skills of yourself.

Therefore, the correct options are:

a. Increasing self-awareness.

b. improving quality of life

d. developing skills

To learn more about personal growth, visit here:

https://brainly.com/question/28146493

#SPJ2

The question is incomplete. Your most probably complete question is given below:

Increasing self-awareness

improving quality of life

avoiding setting goals

developing skills

A photograph is created by what?
Silver, Shutters, Light, Mirrors

Answers

Answer:

Mirror

Explanation:

No explanation

Answer:

I think your answer is Light. Its not silver because thats

just what the camera is made of. Shutters I don't know what it does. Im positive that it is Light!

25 POINTS! PLEASE ANSWER! Karrie would like to draw attention to some short statements in her document. What is the best way to draw the readers deeper into the text? A. insert pull quotes B. change the text color C. use a large font D. highlight the text

Answers

Answer: I would say D. because it is highlighted text draws the attention of the reader

Explanation:

Answer:

D. highlight the text

Explanation:

if your were trying to grab a readers attention highlighting the text is the most noticeble.

Which control bit flags are used during the three-way handshake?

Answers

Answer:

SYN and ACK.

Explanation:

In Computer Networking, a control bit flag is used in transmission control protocol (TCP) to denote a specific state of connection and typically indicates a bit of information (1 bit).

The control bit flags used during the three-way handshake are SYN and ACK. A three-way handshake is used in transmission control protocol (TCP) to establish a reliable connection.

The three-way handshake refers to a client-server communication model which happens in three steps or stages;

1. SYN: this is where the client establishes a connection with the server.

2. SYN-ACK: the server then immediately responds to the server by acknowledging the request.

3. ACK: here the client acknowledges the response of the server and thus create a reliable connection.

what is the different between ethical and legal issues?​

Answers

Answer:

Ethical issue is anything that a person believes to be right or wrong that generally comes down based on personal opinion or a persons belief or philosophy while legal issue is any act done by a person whether he/she thinks it is right or wrong, whether it conforms to the law and needs legal expertise.

Explanation:

which is a legal term which indicates an idea process or physical creation that come from the work of the mind

Answers

Answer:

copy right

Explanation:

don't copy right any major companys

Answer:

Intellectual property

Explanation:

What phrase best describes the overall structure of the
passage

Answers

Answer: The one that gives you more vibe that its correct.

Explanation:

The one that you feel most strongly is accurate is the  best describes the overall structure of the passage.

What is the structure of the passage?

A passage's internal organizational pattern is defined by its text structure. The author's intent behind the text is supported by the text's structure. When determining the structure of a document, transitions—words or phrases that demonstrate how things are related—can be highly beneficial.

These five text structures—description, sequence, cause and effect, compare and contrast, and issue and solution—are taught in this lesson because they are frequently utilized in informational and nonfiction texts.

The table of contents, the index, headings, captions, bold words, illustrations, pictures, the glossary, labels, graphs, charts, and diagrams are some of the most frequent text elements in books.

Thus, he one that you feel most strongly is accurate.

For more information about structure of the passage, click here

https://brainly.com/question/23662376

#SPJ2

Define a constructor as indicated. Sample output for below program:Year: 0, VIN: -1Year: 2009, VIN: 444555666// ===== Code from file CarRecord.java =====public class CarRecord {private int yearMade;private int vehicleIdNum;public void setYearMade(int originalYear) {yearMade = originalYear;return;}public void setVehicleIdNum(int vehIdNum) {vehicleIdNum = vehIdNum;return;}public void print() {System.out.println("Year: " + yearMade + ", VIN: " + vehicleIdNum);return;}// FIXME: Write constructor, initialize year to 0, vehicle ID num to -1./* Your solution goes here */}// ===== end ===== //===== Code from file CallCarRecord.java =====public class CallCarRecord {public static void main (String args) {CarRecord familyCar = new CarRecord();familyCar.print();familyCar.setYearMade(2009);familyCar.setVehicleIdNum(444555666);familyCar.print();return;}}// ===== end =====

Answers

Answer:

public CarRecord(){

       yearMade = 0;

       vehicleIdNum = -1;

   }

Explanation:

A constructor is used to initialize an object instantly. It does not have a return type and has the same name as class.

Create a constructor and set the year as 0 and vehicleIdNum as -1.

This constructor is the default constructor, initializes the default values for the variables, for this class.

A constructor is a block of code that is called and executed each time an object is created.

The constructor in Java is as follows:

public CarRecord(){

       yearMade = 0;

       vehicleIdNum = -1;

  }

A constructor would have the same name as the class.

The class of the program is CarRecord; so the constructor name is CarRecord()

From the question, variables year and vehicles ID are to be initialized to 0 and  -1 respectively.

So, the variable initialization is:

       yearMade = 0;

       vehicleIdNum = -1;

Hence, the complete code segment is:

public CarRecord(){

       yearMade = 0;        vehicleIdNum = -1;

  }

Read more about constructors at:

https://brainly.com/question/14608885

Define foreign key. What is this concept used for?

Answers

Answer and Explanation:

The foreign key is a column that has been linked in a relational database such as mysql to a primary key in another table. We use the foreign key to show a relationship between 2 tables or more. Out of these two tables, one would have the primary key and another the foreign key. For these keys to be linked, any value that is in each of the foreign and primary keys must match.

Other Questions
the endpoints of a line segment are G(1,7) and H(-3,11). Find the coordinates of the midpoint M. Latoya has bought 30 pounds of dog food. She feeds her dog pounds for each meal. For how many meals will the food last? Explain why commutative and associative properties dont hold true for subtraction and division but the identity properties do ? what to do if you have a student whos bad Requirement 3. The owner has been considering ways to increase the sales volume. The owner thinks that 10,000 pizzas could be sold per month by cutting the selling price per pizza from $6.25 to $5.75. How much extra profit (above the current level) would be generated if the selling price were to be decreased? (Hint: Find the restaurant's current monthly profit and compare it to the restaurant's projected monthly profit at the new sales price and volume.) Identify the profit formula and compute the monthly profit at the current and the new volume. Sometimes, however, a lack of self-confidence can come from feelings ofinsecurity. Sometimes we have negative feelings about ourselves and we burythem deep inside. When we do this, we tend to avoid taking chances.What does the author MOST LIKELY want the reader to believe about insecurity based on thisintroduction?AInsecurity is best avoided by burying negative feelings deep insideBInsecurity is something we need to change in order to take chancesInsecurity is not a good reason for lacking self-confidence.DInsecurity is something very few people actually experience: Hello, please help me with this question. Thanks. 4.029 with number names What is 316 Kelvin in Celsius ? 7. 3x + 2y2 let x = 4, y = 3 8. (x + 2)2 - (3x - 2) - 4 Let x = 39. x + 2y - 3z + xyz let x = 4, y = 3, z = 2 10. xyz let x = 4, y = 2, z = 3 What is the value of 4x-7 when X-4?O 1 O 9O 16O 23 (3+2)^2 Please show work The government has decided to give a $1,000 tax rebate to each household in order to stimulate the economy. The government statistics say that each household will spend 90% of the rebate in goods and services. The businesses and individuals who benefited from that 90% will then spend 90% of what they received and so on.What is the total effect of the rebate on the economy?What will the total effect be if the rebate is $5000 to each household in order to stimulate the economy if each household will spend 90% of the rebate in goods and services? *PLEASE ANSWER ASAP* (NEED HELP) Which statement below describes the expression ? -78 = 8 (4 + 7x) + 6(-1 + 8x) Stephanie buys a book in a sale for $19.20 . This sale price is after a reduction of 20%. Calculate the original price of the book NEED ANSWER NOW what is the qoutient? in which one of these situation would the price of goods most likely increase In this energy pyramid below,which type of consumer gets only 10% of the energy stored in plants A.herbivoresB.carnivores C.secondary consumers