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

Describe why seed dormancy is a valuable adaptation that has helped explain the evolutionary success of seed plants
An equilateral triangle has sides of length 20. To the nearest tenth, what is the height of the equilateral triangle. A). 10.0 B).11.5 C).17.3 D).23.1
Briefly describe the expansionist activities of Japan in the early 1930s
does anyone know the function of these graphs? please help and thank you. ​
HELP MMEEEEE! (3h^-2c^4)(8hc^-5) plz give me step by step cuz i dont understand -0-
Mason gave the waiter a $14.58 tip, which was 15 percent of the dinner bill. What was the amount of the dinner bill before he added the tip?
4. Informal logic typically uses everyday ___.conclusionspremiseslanguageexperiencesreasoning
By what percent will a fraction decrease if its numerator is decreased by 50% and its denominator is decreased by 25%?
Please show all work
Please help ASAP and help me find what the value of x is