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
Andreyy89
3 years ago
11

30 mins and I will give Brianlest what is the difference between a method and a function in which ways are they similar why do y

ou think python makes a distinct between methods and functions ​
Computers and Technology
1 answer:
omeli [17]3 years ago
8 0

Answer:

For 1), you should also add that methods in C++ are called member functions. Thus, the difference between functions and methods in this context is analogous to the difference between functions and member functions in C++. Furthermore, languages like Java only have methods. In this case, functions would be analogous to static methods and methods would have the same meaning. For 2), you should add that a method is able to operate on the private instance (member) data declared as part of the class. Any code can access public instance data.   A function is a mathematical construct. I would say all methods are functions but not all functions are methods

Explanation:

You might be interested in
Problem 1. MST - Prim's and Kruskal's algorithms
Juli2301 [7.4K]
Or maybe not Encryption converts the data in a database to a format that is indecipherable to unauthorized users who attempt to bypass the DBMS.

a. True
b. False
7 0
3 years ago
Please create a brute force password cracker using python
serg [7]

Answer:

0

2

I need to make small programs for school to brute force crack different types of passwords; I'm looking to create a brute force python code that will run through every possible combination of alphabetical and alphanumerical passwords and give me the password and the amount of time it took to crack.

I did the same with purely numerical passwords and got this:

import datetime as dt

Password4 = 123456

def crack_password():

   start = dt.datetime.now()

   for n in range(1000000):

       password_guess = '{0:04d}'.format(n)

            if password_guess == str(Password4):

               end = dt.datetime.now()

               print("Password found: {} in {}".format(password_guess, end - start))

              break

   guesses = crack_password()

I then tried to do something somewhat similar for alphabet/alphanumerical passwords but did not work whatever I tried:

   import random

   letters = [str(i) for i in range('a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p')]

   s = [''.join([a,b,c,d,e,f,g,h]) for a in letters for b in letters for c   in letters for d in letters for e in letters for f in letters for g in letters  for h in letters]

   random.shuffle(s)

   real_password = 'aaaaaaaa'

   i = 0

Explanation:

8 0
3 years ago
¿Que importancia tienen los sensores para la agricultura?
PSYCHO15rus [73]

Answer:

La agricultura es el cultivo de cultivos y la cría de animales para producir alimentos, combustible, lana y otros productos que proporcionan los artículos que consumimos y utilizamos a diario.

La producción agrícola es una forma de producción que puede tardar hasta un año en completar un proceso desde la siembra hasta la cosecha y, por lo tanto, los sensores juegan un papel importante en la agricultura para el monitoreo y evaluación de cultivos y ganado.

Los tipos de sensores utilizados en la agricultura incluyen;

1) Sensores de ubicación (GPS)

2) Sensores ópticos (cámaras inteligentes) para análisis de suelo de campo remoto y análisis de distribución de plantas

3) Sensores electroquímicos (sensores de pH) que pueden medir el pH de los suelos

4) Sensor acelerómetro utilizado para el mantenimiento predictivo de componentes con partes móviles

5) Sensores mecánicos que determinan el requisito de capacidad de fuerza de un dispositivo que se utilizará en la granja.

6) Sensor de humedad para determinar el contenido de humedad del suelo

Explanation:

6 0
3 years ago
Which of these best describes cloud computing? A. an on-demand service that helps to access shared computing and storage resourc
Basile [38]
I think its A. an on-demand service that helps to access shared computing and storage resources from anywhere using an Internet connection
5 0
3 years ago
What score does the scoreboard on the loading screen have?​
AnnyKZ [126]

<u>Answer</u>:

<em>It always shows two numbers. One is the highest score and another is the current score</em>. Whatever may be the game, it will always shows the highest score when the game is downloaded.

<u>Explanation</u>:

There would be default value set by the company who designs the game, to encourage <em>people to reach that level and move higher.</em>

So a highest score is always indicated to challenge the current user, so that there is a goal to reach and the user keeps <em>playing the game and in turn the game become popular.</em>

5 0
3 years ago
Other questions:
  • What does raster graphic mean
    5·1 answer
  • Americans overwhelmingly support organ and tissue donation.
    5·1 answer
  • A person planning to file for bankruptcy must receive credit counseling within two years before filing the petition.
    7·1 answer
  • Two students are discussing the flow of electricity. Student A says that voltage is a measure of the amount of electron flow in
    8·1 answer
  • How can you keep your files organized on your computer?
    13·2 answers
  • Many advertisers are now introducing video ad campaigns that stretch across multiple viewing​ platforms, such as traditional tel
    12·1 answer
  • Given the following output from /etc/fstab, which filesystems will be automatically checked on boot by the fsck command? [BEGIN
    5·1 answer
  • Choices.
    11·1 answer
  • Look at the picture ​
    13·2 answers
  • In computer science what are the methods used to protect the information stored by a piece of software called?
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!