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

Which of the following is not a disaccharide?                 A)           sucrose                 B)            maltose                 C)            lactos
what is the inequality of - r/4 < 8 sorry I couldn't put the line under the greater or less sign.
what are scientists who study the weather called
why do you think economic and social changes in the 1920s affected american literature
which is greater 2/3 or 2/6
what is 2.93 as a mixed number in simplest form
In what ways does a river carry its load?
A helicopter flying west begins experiencing an acceleration of 3m/s2 east. Will the magnitude of its velocity increase or decrease?
if a line has no y intercept what can you say about the line
What type of energy does a soccer player transfer to the ball?