how to use function in python

Answers

Answer 1

Answer:

Use the keyword def to declare the function and follow this up with the function name.

Add parameters to the function: they should be within the parentheses of the function. ...

Add statements that the functions should execute.


Related Questions

Most wires are covered in rubber to insulate them and keep people safe from electricity and heat true of false

Answers

Answer:

I think it is true...

Explanation:

Hope its right

x = 0
while x < 4:
print(x)
x += 1
Make it a for loop

Answers

Answer: Here you go :)

Explanation:

x = 0

for n in range(4):

  print(x)

this not a queston but a warning

if you see a tnyInk link DO NOT DOWNLOAD THE FILE IN IT they most likley contain malware and if you see that link in a comment report it please it will help. and also show this to your freinds or someone.

Answers

okay. epic swag man. z

how can you send and share a message information through a phone​

Answers

Answer:

Through text message

Explanation:

Go to messages and select the text you want to share and save it to your clipboard then go to the person you want to send it to then hit the clipboard button and your text will be there.

Through text messages

Go to messages and select the text you want to share and save it to your clipboard then go to the person you want to send it to then hit the clipboard button and your text will be there!

HELP MY TABLET KEEPS ON REBOOTING I TRIED TO FACTORY RESET BUT IT KEEPS ON REBOOTING

Answers

Answer: try to restart It

Explanation:Random reboots can happen because of problems with the firmware, but can also be due to some app you installed that is making the system unstable, or perhaps some bad bit of data that is in the system cache. A corrupt SD card can also cause problems.

Answer: it most likely a thrid party app that is causing this

Explanation: Random restart problems are sometimes caused by a bad third party app. To check if that's the case here, try running your tablet on safe mode and observe. If it works normally and won't restart on safe mode for some time, that can mean that an app is causing the trouble.Mar 6, 2021

Give 3 features and uses of
Desktop
laptop
palmtop computer

Answers

Answer:

A Palmtop or hand-held personal computer is small enough to hold in one hand and operate with the other. Also called a handtop, these ultra-small computers may have specialized keyboards or keypads for data entry applications or have small qwerty keyboards.

• Palmtops are also called PDAs, hand-held computers and pocket computers.

• Palmtop or hand-held personal computer, lightweight, small, battery-powered, general-purpose programmable computer. It typically has a miniaturized full-function, typewriter like keyboard for input and a small, full color, liquid-crystal display for output. In addition to an operating system that is compatible with that of a desktop computer, a palmtop will typically contain a word processor, a spreadsheet program, and a calendar and phone book. A variety of other programs can be loaded and executed, and data can usually be transferred to and from a desktop computer. Although some palmtops are like personal digital assistants in that they accept handwritten or touch screen input, they generally differ in that the palmtop has more memory, a keyboard, and a greater variety of available programs.

Explanation:

9. A convex lens of focal length 8 cm forms a real image of the same size as th
object. What will the distance between the object and its image be:
1) 32cm
2) 8cm
3)16cm
4)24cm​

Answers

Answer: 32cm

Explanation:

Since the focal length of the convex lens is 8cm, the distance between the object and its image be 4f which will be:

= 4 × f

= 4 × focal length

= 4 × 8

= 32cm

The distance between the object and its image is 32cm.

Brainliest for correct answer :)
a. X = A NOR B
b. X= NOT (A OR B)
c. X = A OR B

Answers

the answer is A, the logic circuit is a NOR
Other Questions
solve the following quadratic equation (x-16)^2=256 Who wanna b in a edit vid if so go to Q.C and D.M meh Parallel Lines cut by a transversal Why was sharecropping a scam for African American farmers? *10 pointsthe soil was not good for farmingnobody wanted to buy fruits or vegetables at that timelandowners charged interest and caused farmers to go into debtfarmers did not know how to farm effectively Suppose that in the production of 60-ohm radio resistors, nondefective items are those that have a resistance between 58 and 62 ohms and the probability of a resistors being defective is The resistors are sold in lots of 200, with the guarantee that all resistors are nondefective. What is the probability that a given lot will violate this guarantee? (Use the Poisson distribution.) what does martin luther king jr urge americans to do after police attack protestors on the bridge Emily has a cube with an edge of 8cm. If she wants to paint it, how many square centimeters will she paint? Can someone plz help me with this one problem plz!!! Caleb has a board that measures 10 feet in length. How many 1/3 foot-long pieces can Caleb from the board? please urgent please beg Louis wants to carpet the rectangular floor of his basement. The basement has an area of 363 square feet. The width of the basement is 1 3 its length. What is the length of Louis's basement? The length is feet. The school swim team has 12 freshmen, 10 sophomores, 15 juniors and 5 seniors. The team is headed by 4 coaches How does the author use the themes of light and darkness in lines 9-14? Are they the same or different than the typical use of them? Explain your answer with specific words/phrases. Que relacion hubo entre el movimiento de la ilustracion y los procesos de independencia de las colonias ameriicanas Answer all of these questions please and you will get 100 points! Does anyone know? Thank you! round 3.265.15 yo significant figure Add the polynomials and write your answer in standard form.(4x^3+6x-7) + (3x^3-5x^2-5x+9) What is the area of the rectangle if the sides are 7 and 5? Recommend 4 ways in which your municipality can address unemployment