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

2. Which of the following was a formal alliance among Germany, Italy, and Japan? Tripartite Pact Atlantic Charter appeasement Anschluss
Factor the polynomial 3x^2(x-4)-5(x-4)
To which of the senses does the author appeal in describing Old Lady Chong’s age? a) touch and smell b)smell and hearing c)hearing and touch d)taste and smell
sI unit of temperature
Wes gets tricked into believing he could escape military school and go home. What did Wes learn as a result of this prank?
Find the balance in the account. $800 principal earning 7%, compounded annually, after 4 years
I'm not really sure what to do.
112,811 to the nearest hundred thousand
Math question please help If you get this right I will mark you as a brainliest
221x97 show your work