Write a function that takes two arguments and returns their sum.
In the main part of your program (the part that isn't inside a function), call your
function to test it out.

Answers

Answer 1

Answer & Explanation #1

To answer your first query. You can write a function that takes two arguments and returns their sum like this:

#Python program to add two numbers using a function

def add_num(a,b): #function for addition

   sum=a+b

   return sum #return value

num1=25  #variable declaration

num2=55

print("The sum is",add_num(num1,num2)) #call the function

Answer & Explanation #2

As for your error, I believe it is an indent error in your first return statement. All you must do is indent the return statement.


Related Questions

The terms Apps and Applications can be used interchangeably about software installed
on both computers and mobile devices. True or False

Answers

Answer:

False

Explanation:

Hope this helps and have a great day!!!!

In order to create a chart, which of the following must be selected?
O Data tools
O Worksheet tab
O Data source
O Table styles

Answers

A chart is the graphical presentation of data and is a part of the data visualization. The data is represented by the symbols and bars in a bar chart.

They are often sued to show large quantities of data in a simple and understandable form. For making a chart first we need to select data tools and then design tools.

Hence the option A is correct.

Learn more about the order to create a chart.

brainly.com/question/22004535.

8. Cloud Storage is
a) Computer technology to control the weather.
b) Computer technology to make computers faster.
c) Computer technology to make computers slower.
d) Computer technology to store files on the Internet,

Answers

Answer:

The correct option;

Computer technology to store files on the internet

Explanation:

Cloud Storage provides a means where data files originally locally stored on a computer are stored in remote or off-site locations which are then accessible through a public internet source or through a private network

The provider of the cloud services takes responsibility for data which are stored in the site

A cloud storage consists of a data server that is connected to the internet to which files are transferred to by a user manually or by automation. The data server then sends the data further to other server. The user can then access the stored data through the cloud storage provider's users web interface.

Answer:

D

Explanation:

d) Computer technology to store files on the Internet,

Complete each sentence

To complete step 3, select ____ under table tools.
In step 5, each existing column is split in ____. In this table, the ____ rows cells are blank.
To use the options listed in step 9, click ____

Answer choices: first sentence (design,layout,merge) second (sixths,thirds,half) and (first,second,third) last sentence (design,layout,merge)

Answers

Answer:

Complete each sentence.

To complete Step 3, select LAYOUT under Table Tools.

In Step 5, each existing column is split in HALF In this table, the SECOND

row’s cells are blank.

To use the options listed in Step 9, click DESIGN.

Hope this helped. Please Mark me Brainliest!

PLEASE HELP ME! Consider the block of code below. When will the value of s be equal to 5? (Java Programming) (3 points)

if(isFemale)
s = 5;
else
s = −161;

a. isFemale equals 5
a. isFemale equals 'F'
c. isFemale equals "F"
d. isFemale equals true
e. isFemale equals −161

Answers

Answer:

d. isFemale equals true

Explanation:

I believe that the answer would be d: isFemale equals true. I am an AP Computer Science Principles student this year, and when we code apps we use "if else" blocks, and if the "if" statement is true, then the code will follow through with the "if" section. If not, then it will follow through with the "esle" section.

Therefore, if (isFemale) is true, the code would follow that section, and have s=5.

I hope this helps! :)

Imagine that a you and a friend are exercising together at a gym. Your friend suddenly trips and falls, and it is clear that he or she has suffered an ankle sprain. Luckily you know exactly what has happened. Explain how your friend sustained the injury and, assuming you had the necessary supplies, including a first aid kit and a phone, explain what steps could you take to stabilize your friend's injury.
Name each of the five steps in the PRICE treatment.

Answers

Answer:

The sprain happened when the friend fell and the ligaments (in the ankle)  stretched, twisted or possibly tore. Sprain is manifested by pain, swelling, bruising and inability to move.

Explanation:

Here the appropriate steps to stabilize the injury:

1.       Call for help.

2.       Rest the injured area to avoid further damage.

3.       Put ice ( for 15 to 20 minutes) to help limit the swelling.

4.       Apply compression bandage to prevent more swelling.

5.       Elevate the injured ankle above the heart to limit swelling.

Hope this helps UvU

Taking a recipe and breaking it down into its individual sections, like ingredients, preparation, cooking instructions, and nutritional information, is an example of _____.

refinement

pattern recognition

decomposition

abstraction

Answers

Answer:

its C - Decomposition

Explanation:

100% edge

Fruits and vegetables lose some of their vitamins and phytonutrients, which are healthy plant molecules other than vitamins and minerals. The amount of nutrients destroyed increases with cooking time and temperature. Some nutrients can even start to be lost during food preparation. Thus, option C is correct.

What cooking instructions, include decomposition?

Boiling results in the greatest loss of nutrients, while other cooking methods more effectively preserve the nutrient content of food. When it comes to preserving nutrients, stir-frying, roasting, and steaming are some of the best ways to prepare vegetables.

There are three different sorts of cooking techniques: combination cooking, moist heat cooking, and dry heat cooking. Heat is used in each of these techniques to modify food uniquely. These three ways can be used to categorize all forms of cooking, including grilling and steaming.

Therefore, taking a recipe and breaking it down into its individual sections, like ingredients, preparation, cooking instructions, and nutritional information, is an example of (decomposition).

Learn more about cooking here:

https://brainly.com/question/5190639

#SPJ2

A pizza delivery restaurant decides to stop hiring drivers and start hiring cyclers to deliver its pizza. The restaurant thinks this will cut costs because it will not have to pay for gas. This is an example of which of the following supply chain management drivers?


A. information

B. facilities

C. transportation

D. inventory

Answers

Answer:

C. i think im sorry if  im wrong plz forgive

PLZ HELP What is the problem with this program?

name = "Jenny"

name = input("What is your name?")

A.
the variable name has to begin with a capital letter

B.
input should be output

C.
the first line should be omitted because the second line defines the variable

D.
the variable needs to begin with a number to distinguish it from other variables

Answers

Answer:

B

Explanation:

the answer is B imput should be output

Answer: I think the answer is (C)

I'm doing the exam rn and that what i think

Explanation:

What does the aperture on a camera control?

Answers

Answer:

Aperture controls the brightness of the image that passes through the lens and falls on the image sensor.

Explanation:


When protecting a book

You are not able to add a new sheet to the book, delete an existing sheet, or modify the title of the sheet.
true
false ??

Answers

false. maybe i honestly kind of think so

plz help me
write an algorithm and draw a flowchart to find the area and volume of a cube​

Answers

Answer:

Can't draw a flow chart here, but here are the steps you need:

1) Prompt for side length of cube

2) If the entry is non-numeric, give error and go to step 1

3) If the entry is less than zero, give error and go to step 1

4) output "Volume is " + (entry * entry * entry)

5) output "Surface area is " + (6 * entry * entry)

6) Prompt for calculating another cube

7) If the reply is "y", go to step 1

8) end

If you have a 99% and you got a 50 on a test what is the grade please I will give brainless

Answers

Answer:

you would have a C

Explanation:

depends on your other grades. you can relax, ask your teacher for extra credit

HELP ASAP PLEASE!!!

Answers

Answer:

Click and drag the mouse to select the cells

Explanation:

Can someone help me plz

Answers

Answer:

O two one

O Not;And;Or

I hope its help for you

have a great day

Which of the following scenarios describes an IT
professional using the Internet and computer
system access in an unprofessional or
inappropriate way? Check all of the boxes that
apply.

Answers

Answer:

-checking social media networks during working hours

-surfing the Internet during working hours for what to do on the weekend

-downloading a favorite band’s latest album from a file-sharing service

Explanation:

they are all correct on edg.

Answer:1 2 3 they are all correct

Explanation:

Converting Denary to Binary
Work out the binary value of each denary number. Remember, any number you put a 1 under is
activated and will be added, anything with a 0 under is not activated and is not added One has been
done for you to show you how you can work it out
128
Denary
32
16
8
2
1
1
1
0
0
0
1
1
+
199
I need to make 199 out of the 8 different numbers I have across the top
I can use 128, this will leave me with 71 stil to make
I can then use 64, this will leave me with 7
can't use 16 or 8 as they won't fit into 7
I can use 4 which will leave me with 3
I can use 2 which will leave me with 1
can then use 1
I have made 199
Any number I used will be a one, numbers I didn't use are all
128
Denary
64
32
16
1
56
121
45
132
249

Answers

Answer:

Converting the numbers provided to decimal:

128: 10000000

64: 01000000

32: 00100000

16: 00010000

1: 00000001

56: 00111000

121: 01111001

45: 00101101

132: 10000010

245: 11111001

Python exercise grade 10

Write a program that determines which dates comes earlier on the calendar. The user

may enter any number of dates. The user will enter 0/0/0 to indicate that no more dates

will be entered

Example:
Enter a date (month): 3

Enter a date (date): 6

Enter a date (year): 2008

03/06/2008

Enter a date (month): 5

Enter a date (date): 17

Enter a date (year): 2007

05/17/2007

Enter a date (month): 6

Enter a date (date): 3

Enter a date (year): 2007

06/03/2007

Enter a date (month): 0

Enter a date (date): 0

Enter a date (year): 0

5/17/2007 is the earliest date

Answers

earliest = ""

while True:

   month = int(input("Enter a date (month): "))

   day = int(input("Enter a date (date): "))

   year = int(input("Enter a date (year): "))

   if month == 0 and day == 0 and year == 0:

       break

   if month < 10:

       month = "0"+str(month)

   if day < 10:

       day = "0"+str(day)

   string_date = str(month)+"/"+str(day)+"/"+str(year)

   print(string_date)

   if earliest == "":

       earliest = string_date

   else:

       year,month,day=int(year),int(month),int(day)

       lst = list(map(int,earliest.split("/")))

       if year < lst[2]:

           earliest = string_date

       elif year == lst[2] and month < lst[0]:

           earliest = string_date

       elif year == lst[2] and lst[0] == month and day < lst[1]:

           earliest = string_date

print(earliest,"is the earliest date")

I wrote my code in python 3.8. Best of luck.

Which of the following sentences use personification 


A. The stars in the sky are bright


B. The tree had leaves of green, yellow, and brown,


C. The truck pulled the heavy trailer out of the mud.


D. The snowflakes danced through the air.

Answers

Answer:

D

Explanation:

snowflakes cant dance.Its a human things.

What does the “MIN” and “MAX” functions allow you to do when inserted in a spreadsheet?

Answers

Answer:

The MIN and MAX functions are just what the names imply. MIN will find the lowest number in a range, while MAX finds the largest number in a range. One advantage to these functions is that they can be combined with the IF function.

Explanation:

What is the first multiple of a bit

Answers

Answer:

The byte

Explanation:

which represents eight bits

PLEASE HELP. How do you do this? ANSWER only if you know Please.

Answers

I think it might be 16. But I don’t really now so I say wait for another person’s answer this one might not be correct

Answer:

16

Explanation:

answer = num1 + num2 // 3+2 = 5

answer = answer + num1 // 5+3 = 8

return answer*num2 // 8*2 = 16

Ict quiz I attached a picture

Answers

Answer:

error:invalid syntax

Explanation:

heeheee

Which of the following is a drilling cycle available with CAM software?
Point
Straight
Through
All of the above
None of the above

Answers

Answer:

straight just like me

What are the difference between immediate window and view window.
(wrong answers will be reported)

Answers

Answer:

mmediate window is used to debug and evaluate expressions, execute statements, print variable values, and so forth. It allows you to enter expressions to be evaluated or executed by the development language during debugging.

The Command Window is used to execute commands or aliases directly in the Visual Studio integrated development environment (IDE).

Explanation:

A system consumed 0.4 seconds of processor time, 0.3 seconds accessing the network, and 0.5 seconds accessing the disk drive to execute the task. Where is the bottleneck in this network

Answers

Answer:

the disk drive

Explanation:

A bottle neck in a network is the condition through which the data flows becomes limited by the network of the computer system. It occurs in the user network or within the servers where there are contention for any internal server resources.

In the context, a system that consumes 0.4 seconds for the processor time and time 0.3 seconds for accessing the network. The system also takes 0.5 seconds for accessing disk drive for executing the task. So the bottle neck in this system is the disk drive.

Plz help
You want Excel to automatically apply “stripes” in an alternating pattern to existing raw data in your spreadsheet. Describe the precise steps you could take to do so. What other function would be added when you apply this change, assuming you have a header row and leave the default options selected?

Answers

Answer:

1)Select the cells you want to shade.

2)On the Home tab of ribbon select Conditional Formatting > New Rule

3)Select 'Use a formula to determine which cells to format' > enter your formula in the 'Edit the Rule Description' field.

4)Click the Format button and from the Format Cells dialog box select the Fill tab > choose your weapon (colour, pattern, fill effect etc.):

Explanation:

Please help me for this question - Computer Science

Answers

Answer:

# F F F F 0 0

# F F 0 0 F F

# 0 0 F F F F

Explanation:

Hex values are your friend.

The first two digits represent red.

# F F 0 0 0 0 - Red

The second two digits represent green.

# 0 0 F F 0 0 - Green

The third two digits represent blue.

# 0 0 0 0 F F - Blue

If you know yellow is a combination of red and green, you express the corresponding digits.

# F F 0 0 0 0 - Red

# 0 0 F F 0 0 - Green

+

-------------------------------

# F F F F 0 0 - Yellow

Similarly,

If you know magenta is a combination of red and blue, you express the corresponding hex digits.

# F F 0 0 0 0 - Red

# 0 0 0 0 F F - Blue

+

-----------------------------

# F F 0 0 F F - Magenta

And finally,

If you know cyan is a combination of green and blue, you express the corresponding hex digits.

# 0 0 F F 0 0 - Green

# 0 0 0 0 F F - Blue

+

----------------------------

# 0 0 F F F F - Cyan

What does it mean to "express the digits"?

If you know anything about how color works on a computer, you'll know that you can express a certain amount of red, green and blue to get almost any color. These are known as "RGB" values. In RGB, the red, green or blue can individually go from 0 - 255. Think of it like a slider for how much you want of each color.

In RGB:

RGB (255, 255, 255) - White

Hex is just a really convenient and shorthand way to write the RGB color values.

In Hex:

#FFFFFF - White

Check My Work Sherri is considering replacing a processor on her laptop. The laptop is running slower than she would like. What should Sherri consider prior to taking the laptop apart

Answers

Complete Question:

Sherri is considering replacing a processor on her laptop. The laptop is running slower than she would like. What should Sherri consider prior to taking the laptop apart? (Select all that apply.)

Group of answer choices.

a. Try an external device before replacing the motherboard.

b. Make sure you have the correct processor for the motherboard.

c. Verify that the laptop is not under warranty.

d. Determine whether a teardown procedure is available.

Answer:

b. Make sure you have the correct processor for the motherboard.

c. Verify that the laptop is not under warranty.

d. Determine whether a teardown procedure is available.

Explanation:

In this scenario, Sherri is considering replacing a processor on her laptop because the laptop is running slower than she would like.

Hence, Sherri should consider the following informations prior to taking the laptop apart;

I. Make sure you have the correct processor for the motherboard. She can get the specifications of the motherboard and processor on the manufacturer's website.

II. Verify that the laptop is not under warranty because if it still under warranty, taking the laptop apart would void the warranty granted by the original manufacturer.

III. Determine whether a teardown procedure is available. She should ensure there is a guide available for dismantling and re-coupling of the laptop.

PLZ HELP

Alejandro decided to save some time by copying and pasting code into the editor, but the program didn’t work. What is the most likely explanation for this?


A.

There was no binary converter.


B.

Interpreters can’t read symbols from a different font.


C.

There was no code editor available.


D.

There was an error in the original code.

Answers

Answer:

B needed points but its right

;)

Explanation:

A professional interpreter's job is to make it possible for two or more parties who speak different languages to communicate with one another. Because of this, qualified interpreters are limited to translating spoken words. Thus, option B is correct.

What Interpreters can’t read symbols from a different font?

Their responsibilities include accompanying clients on trips to help them communicate with others who speak different languages, translating speeches or presentations for audiences that are multilingual, and assisting with the conversion of spoken words into written communications.

Add > Symbol > Additional Symbols. Select the symbol in the resulting window, but also double-check that the font is set to your usual font on the line at the upper left. After that, type your shortcut. The symbol ought to display in the specified font when you use the shortcut.

Therefore, Interpreters can’t read symbols from a different font.

Learn more about font here:

https://brainly.com/question/7971447

#SPJ2

Other Questions
is -5 +(-2) negative or postive HOW IS EVERYONE i love u all and enjoy helping you where u may struggle question 5. the beliefs and patterns of behavior that are shared by a group of people who passed down from generation is called Wellness.A. true or B. false point A is at (3,4) and point M is at (5.5,0) . M is the midpoint between point A and point B. What are the coordinates for Point B What is the sum of -3x2 - 7x + 9 and -5x + 6x 4? Kate used 2/5 of a pound of sugar to bake cookies. She used another 3/4 of a pound of flour for the cookies. How many pounds of sugar and flour did she use in all? ASAP ANSWER PLS silly question I know but lets see who can answer faster Q: 2+2 state whether the following statement is true or false: y= -x2 + 6x - 10 does not intersect the x-axis. Find the b's in thisdddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddbddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddbdddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddbddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddbdddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddbddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddHave a great day! :) Select the correct choice below and fill in the answer box(es) to complete your choice.(Type a whole number.)A. 31275=?B. 31275=? R ? In question B the reason why i put an R there is because there also asking for the remainder. Plz help me on this. Fast give me answer plz....Why was he writing that article? (into passive voice) Which statements are true for triangle LNM? Check all that apply. What is the value of x in the figure shown below? Pleaseee HelpppppppCreate a paragraph using the following wordsAlteration, evolved , melancholy, hazardous, somber, beset. Some one plzzz help Jane's salary is increased by 3% to 20497.how much was her salary before the rise? A pressure of 125,400 pa is equal to what kPa The asteroid Icarus orbits the sun like other planets. Its period is about 410 days. What is its mean distance from the sun What evidence from the text supports the prediction that mrs.linde will get back together with krogstrad What body of water separates Great Britain from the Europeanmainland?English ChannelAtlantic OceanBaltic Sea