Question: Define a function called hello. If you call this function with no argument, it print Hello, world! If you call it with one argument, the

Define a function called hello. If you call this function with no argument, it print "Hello, world!" If you call it with one argument, the argument is interpreted a name. For example, hello("Bob") will print "Hello, Bob!" If you call it with two arguments, the second argument is meant to be a number and the message will be repeated multiple times specified by that number. For example hello("Bob",3) will print "Hello, Bob! Hello, Bob! Hello, Bob!"

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!