evelynmontes5711 evelynmontes5711
  • 24-09-2021
  • Computers and Technology
contestada

What will be printed after the code below is ran: a = "123" b = "456" a = b + "123" b = a print(b + a)

Respuesta :

saadatk
saadatk saadatk
  • 24-09-2021

Answer:

1158

Explanation:

a = 123

b= 456

a = b + 123                           [a = 456 + 123 = 579]

b = a                                     [b = 579]

print(b + a)

output: 1158

P.S

If the variables have string values (because they have double-quotes around them), then the answer will be very different!

Answer Link

Otras preguntas

A nerve is a group of ________ bundled together.
P is self-employed and owns an individual disability income policy. he becomes totally disabled on june 1 and receives $2,000 a month for the next 10 months. ho
what type of government did the Constitution establish for the United States
Which of the following was the greatest issue leading to the Monroe Doctrine? 1The United States was concerned about renewed European colonization efforts in t
4(x+x+7)-2x+7-4 by substituting x=1 and x=2
Danny keeps five cards with the picture of a cat and six cards with the picture of a dog on a table face down, so the pictures are hidden. He mixes up the cards
What government problems arose as a result of patronage?
in 1841, lydia child became editor of the committee's publication called The national anti slavery standard True or False
What does the United States owe Native Americans for the wrongs done to them in past centuries?
A deli made $1,080 on 24 deluxe plates. How much money would the deli make with 35 deluxe plates? -1,575 -1,555 - 1,475 -1,455