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

Explain how government policies during World War I affected the lives of US citizens.
is embellish and adorn the same thing?
6 less than b. the translation is?
Write a poem about "My Burden"
How is Battle of Brooklyn related to Exploration,Encounter, and Exchange?Thank You :)!!
At Jacks ice cream shop, a customer receives a free ice cream cone for every 5 ice cream cones the customer purchases. What is the ratio of the number if ice cr
What is the role of tone in poetry? a. to provide rhythm b. to create images c. to enhance a style d. to express an attitude
Which sentence contains a prepositional phrase? A. Running all the way, he got there early. B. They tried, although they didn't expect to win. C. They sang i
Simplify the expression:- 3w - 10w Thank You!!!
_________ is the method used to support a likely sequence of events at a crime scene by the observation and evaluation of physical evidence and statements made