1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Licemer1 [7]
3 years ago
15

What is the difference between a method and a function? In what ways are they similar? Why do you think Python makes a distincti

on between methods and functions?
Computers and Technology
1 answer:
makvit [3.9K]3 years ago
5 0

Answer:

A method in python is somewhat similarto a function, except it is associated with object/classes. Methods in python are very similar to functions except for two major differences. The method is implicitly used for an object for which it is called. The method is accessible to data that is contained within the class.

You might be interested in
Write a function called convert_format which converts the format of a date from mm/dd/yyyy to month name dd, yyyy.
My name is Ann [436]

Answer:

The code is given using Python

Explanation:

#datetime to be import

from datetime import datetime

#function convert_format to convert_format date to particular format

def convert_format():

#take date from user input

inputDate = input('Enter a date(mm/dd/yyyy): ')

#using datetime convert to format month day year

dateObject = datetime.strptime(inputDate, '%m/%d/%Y')

#print the date

print(dateObject.strftime('%B %d, %Y'))

#function call

convert_format()

7 0
3 years ago
Which of these functions may be used with positional arguments? Select four options.
jeyben [28]

Answer:

AVERAGE

COUNT

SUM

MAX

Explanation:

The functions that may be used with positional arguments include:

AVERAGE

COUNT

SUM

MAX

The basic functions formulae include SUM, AVERAGE, COUNT, MAX and MIN.

SUM: This is the sum total of all the numbers in the rows.

COUNT: This is the used to count the range of cells that contains numbers.

AVERAGE: This is the average of all the numbers in the rows.

MIN: This is the lowest number in the rows.

MAX: This will return the highest number that is found in the set of values.

It should be noted that the COUNTIF is not used with positional arguments.

8 0
3 years ago
Describe the plot of the Matrix
Shkiper50 [21]

Answer:

the phe

Explanation:

4 0
3 years ago
Which of the following statements is TRUE?
Leya [2.2K]

Answer:

B

Explanation:

im pretty sure thats the answer

5 0
3 years ago
_______ allows you to add formatting such as shapes and colors to text.
Svetach [21]
Worddesign allows you to add formatting such as shapes and colours to text
7 0
3 years ago
Other questions:
  • Claim: Raising the minimum wage does not help most minimum wage employees Reason: Many small businesses cannot afford high minim
    14·2 answers
  • Samantha plans an investigation in which she will study a population of animals. Which of these answers best describes the focus
    8·1 answer
  • ¿Ha existido en la historia de nuestra humanidad alguien que hubiera hecho posible el sueño del ser humano en obtener energía li
    11·1 answer
  • ) A popular PivotChart that is used in Access is (Points : 4) column.
    9·1 answer
  • Type the correct answer in the box.
    5·1 answer
  • Hazel has just finished adding pictures to her holiday newsletter. She decides to crop an image. What is cropping an image?
    10·1 answer
  • What means the data is still saved even if you turn the computer off or unplug it?​
    5·1 answer
  • 11.6 Code Practice edhesive
    11·1 answer
  • X274: Recursion Programming Exercise: Cannonballs Spherical objects, such as cannonballs, can be stacked to form a pyramid with
    7·1 answer
  • Please help me asapppp!​
    8·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!