def display (): print ("ITSE101") def displayNumber (n1, n2): if nl > n2: return nl + n2 else: return nl -n2

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter9: Advanced Array Concepts
Section: Chapter Questions
Problem 2GZ
icon
Related questions
Question
Python
def display():
print ("ITSE101")
def displayNumber (nl, n2):
if nl > n2:
return nl + n2
else:
return nl -n2
def remarks (number):
if number>10:
return "Hello";
else:
return "Hi";
display ()
print ("Output 1\t:",displayNumber (6, 3))
print ("Output 2\t:", displayNumber (3, 6))
print ("Output 3\t:", remarks (10))
print ("Output 4\t:",
remarks (displayNumber (10,5))):
Transcribed Image Text:def display(): print ("ITSE101") def displayNumber (nl, n2): if nl > n2: return nl + n2 else: return nl -n2 def remarks (number): if number>10: return "Hello"; else: return "Hi"; display () print ("Output 1\t:",displayNumber (6, 3)) print ("Output 2\t:", displayNumber (3, 6)) print ("Output 3\t:", remarks (10)) print ("Output 4\t:", remarks (displayNumber (10,5))):
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Introduction to computer system
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT