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

I WILL MARK BRAINLIEST!! VIDEO GAMES --> List 2 reasons why video games are bad for your health, and 2 reasons why they are good.
a fruit fly of genotype Aa Bb is crossed to anotehr fruit fly of genotype aa bb. the progeny of this cross were
What is an axiomatic system? (1 point) a set of conjectures that have been proven using logic and deductive reasoning O a system built on a small set of accepte
Vector A has a magnitude of 6.0 m and points 30° north of east. Vector B has a magnitude of 4.0 m and points 30° west of south. The resultant vector A+ B is giv
HELP ME HELP ME HELP ME HELP ME
essay on value of a true friend​
how does the play characterize ichabod crane for the audience? how might this be different from how Crane's views himself
what five safety rules that you could use at home​
Suppose you're writing a speech that tells a personal story and then explains what the experience means to you. Which organizational pattern should you use to c
1. Name two areas of Europe that stayed under Muslim control.