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

Find the total surface area of the pyramid. 4 in. Bx X3.140 10 in.​
Are the lines x = 2 and y = 5 parallel? Are the perpendicular? Explain. =
True or false all of the radiation from the sun is absorbed by the earth
A cylinder has a surface area of 150 inches²? What is its height if the radius is 5 inches? A) 5 inches B) 10 inches C)[tex]5\pi \: inches[/tex]D) [tex]10\pi \:
When Gemma was born, her grandmother invested $200 000 in a building society for her. Find the value of this investment after 18 years if the interest rate is 4
Please help anyone?!!!!
c) Brett buys 120 chocolate bars for £60 He sells them all, making a 50% profit to give to charity. He sells each bar for the same price. How much does he sell
What is the effect of the repetition of "a little plastic" in paragraphs 2?
ASAP! I need help with this equation!​
A criminal record is the cost of violence for the _____