Consider the following code. What prints? a=2 b=4 print(a+b) A.2 B.2+4 C.6

Horizons: Exploring the Universe (MindTap Course List)
14th Edition
ISBN:9781305960961
Author:Michael A. Seeds, Dana Backman
Publisher:Michael A. Seeds, Dana Backman
Chapter5: Light And Telescopes
Section: Chapter Questions
Problem 10RQ
icon
Related questions
Question
Please need solution
3. Consider the following code. What prints?
a=2
b=4
print(a+b)
A.2
B.2+4
C.6
D.4
Transcribed Image Text:3. Consider the following code. What prints? a=2 b=4 print(a+b) A.2 B.2+4 C.6 D.4
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Horizons: Exploring the Universe (MindTap Course …
Horizons: Exploring the Universe (MindTap Course …
Physics
ISBN:
9781305960961
Author:
Michael A. Seeds, Dana Backman
Publisher:
Cengage Learning
Glencoe Physics: Principles and Problems, Student…
Glencoe Physics: Principles and Problems, Student…
Physics
ISBN:
9780078807213
Author:
Paul W. Zitzewitz
Publisher:
Glencoe/McGraw-Hill
College Physics
College Physics
Physics
ISBN:
9781938168000
Author:
Paul Peter Urone, Roger Hinrichs
Publisher:
OpenStax College
Inquiry into Physics
Inquiry into Physics
Physics
ISBN:
9781337515863
Author:
Ostdiek
Publisher:
Cengage