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
stira [4]
4 years ago
10

In Python, the ‘+’ operator can be used with numbers and with strings. What is a property that number addition has, but string c

oncatenation does not?
Computers and Technology
1 answer:
Natali [406]4 years ago
5 0

Answer:

Answered below

Explanation:

The property in number addition that is not found in string concatenation, although both use the '+' operator, is that in number addition, the expression value does not depend on the order of the numeric addition operands. Any order of arrangement of the operands produces the same value when they are added.

This is not so in string concatenation because different orders or the arrangement of different strings on concatenation, produce different results or values. For instance, the concatenation of 'He is a' + 'boy' results in 'He is a boy' whereas reversing the placements of both strings would result in a totally different value. This is not so in number addition where 4 + 2 gives the same value as 2 + 4.

Therefore the use of the '+' operator with string concatenation and with numerical additions produce different expression values where one depends on the order and one does not.

You might be interested in
Can we change the format of a field (e.g. Number to Dollars).
mixer [17]

I think the answer is

3 - Usually, but we may need to convert the data types (date to text)

Because we can change the format, but depends of the original format type and in what type you need to format.

I think this can help.

3 0
4 years ago
Methods inherited from the base/super class can be overridden. This means changing their implementation; the original source cod
Inessa05 [86]

Answer:

False

Explanation:

Methods inherited from the base/super class can be overridden only if behvior is close enough. The overridding method should have same name, type and number of parameters and same return type.

6 0
3 years ago
__________ consists of both physical devices and software, links the various pieces of hardware, and transfers data from one phy
sineoko [7]

Answer:

Communications technology

Explanation:

<u>Communications technology</u> consists of both physical devices and software, links the various pieces of hardware, and transfers data from one physical location to another.

6 0
3 years ago
How to write this program , please ?​
sleet_krkn [62]

Answer:

010101010101

Explanation:

Ao código binario

6 0
3 years ago
write a program that reads a string from the user containing a date in the form mm/dd/yyyy. it should print the date in the form
julia-pushkina [17]

Using the knowledge in computational language in python it is possible to write a code that reads a string from the user containing a date in the form mm/dd/yyyy.

<h3>Writting the code:</h3>

<em>months_info = ['January', 'February','March','April', 'May','June', 'July','August', 'September', 'October', 'November', 'December']</em>

<em>date = input('Enter a date using the mm/dd/yyyy format ')</em>

<em>m, d, y = date.split('/')</em>

<em>m = int(m) - 1</em>

<em>name_of_month = months_info[m]</em>

<em>print('{} {}, {}'.format(name_of_month, d, y))</em>

See more about python at brainly.com/question/13437928

#SPJ1

3 0
2 years ago
Other questions:
  • What device did vladimir Zworykin use to develop television technology that resulted in the technology shifting from a mechanica
    13·1 answer
  • What is an efficient way to ensure that the code is working as per the acceptance criteria/business requirements? (1 correct ans
    11·2 answers
  • Rick works for the government and is investigating a small business that the government suspects has been cheating on its taxes.
    15·1 answer
  • Which item is most likely to be a standard part?
    14·1 answer
  • I’m turning my Pinterest into a professional account what should be my user name please try to think of a good name and not just
    11·2 answers
  • The large capacity, high-definition optical discs designed to store hi-def video and video games are _______. Group of answer ch
    13·1 answer
  • The Program Manager just received approval of his proposed acquisition strategy with one exception: he has been directed to make
    7·1 answer
  • Video games, regardless of their level of realish, had added a new dynamic to the world games and Entertainment the ability to s
    9·1 answer
  • 1) The critical path of a network is the A) shortest time path through the network. B) path with the fewest activities. C) path
    14·1 answer
  • It is recommended that systems administrators analyze logs in order to determine if they have been altered because monitoring ca
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!