English

Write the output from the following code: x = 10 y = 20 if (x>y): print x+y else: print x-y

Advertisements
Advertisements

Question

Write the output from the following code:

x = 10
y = 20
if (x>y):
     print x+y
else:
     print x-y
Code Writing
Advertisements

Solution

-10
shaalaa.com
  Is there an error in this question or solution?
Chapter 1: Review of Phython - EXERCISE [Page 24]

APPEARS IN

CBSE Computer Science with Python [English] Class 12
Chapter 1 Review of Phython
EXERCISE | Q 1. a. | Page 24
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×