Computer Science, asked by saravanansuba2000, 9 months ago

Let's revisit our lucky_number function. We want to change it, so that instead of printing the message, it returns the message. This way, the calling line can print the message, or do something else with it if needed. Fill in the blanks to complete the code to make it work

Answers

Answered by ronak4051
0

Answer:

Let’s say we need to load a third-party script and call a function that resides there.

We can load it dynamically, like this:

let script = document.createElement('script');

script.src = "my.js";

document.head.append(script);

Answered by edmundayeh38
8

Answer:

def lucky_number(name):

 number = len(name) * 9

 return("Hello " + name + ". Your lucky number is " + str(number))

     

print(lucky_number("Kay"))

print(lucky_number("Cameron"))

Explanation:

Since we are to return a value there is a need to bring the return keyword in order to give us the desired output

Similar questions