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

Clare estimates that her brother is 4 feet tall. When they get measured at the doctor’s office, her brother’s height is 4 feet, 2 inches. 1. Should Clare's or t
Is amazing a strong adjective or no
make sentence. take off​
The local high school is hosting the last soccer game. They charged adults, x, $5 to enter, and $3 for students, y. It costs the school $300 to pay the referees
What else would need to be congruent to show that ABC PQR by SSS? Given ———- AC=PR BC=QR A. AB=BA B. AB=PQ C. AC=PQ D. A=P
calculate the packing efficiency of simple cubic unit cell.​
drake gathers half of the money he had saved up plus the $50 his father gave him to buy a new scooter that costs $125. Write an equation to help you determine t
Helppppppppppppp ASAP
Help with this problem
Carla Vista Company purchased equipment that cost $3980000 on January 1, 2020. The entire cost was recorded as an expense. The equipment had a 9-year life and a