1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Ierofanga [76]
4 years ago
10

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.
def lucky_number(name):
number = len(name) * 9
___ = "Hello " + name + ". Your lucky number is " + str(number)
___

print(lucky_number("Kay"))
print(lucky_number("Cameron"))
Computers and Technology
1 answer:
maksim [4K]4 years ago
3 0

Answer:

Replace the first blank with:

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

Replace the second blank with:

return message

Explanation:

The first blank needs to be filled with a variable; we can make use of any variable name as long as it follows the variable naming convention.

Having said that, I decided to make use of variable name "message", without the quotes

The next blank is meant to return the variable on the previous line;

Since the variable that was used is message, the next blank will be "return message", without the quotes

You might be interested in
What is the speed of Android operating system?
NemiM [27]

Answer:

There isn't an exact android speed due to a variety of androids. But there are very fast like the HTC 10 or a Samsung Galaxy.

Explanation:

6 0
3 years ago
Which expression is equivalent to 3x + 3x + 3x?<br><br> From Performance Matters
mamaluj [8]
9x because you can add 3x+3x+3x because they are the same and can be added
3 0
3 years ago
Read 2 more answers
Explain the importance of system software in the computer​
AveGali [126]

Answer:

System software is a type of computer program that is designed to run a computer's hardware and application programs. If we think of the computer system as a layered model, the system software is the interface between the hardware and user applications. The OS manages all the other programs in a computer.

Explanation:

Hope this helps

Crown me as brainliest:)

7 0
3 years ago
MRS. PAPPAS CP ALG - PERIOD 8<br>My assignments<br>Active<br>FA<br>Past<br>ALL UPCOMING<br>Sensor​
Nat2105 [25]

Answer:

This is a daily schedule for any teacher. It seems he/she wants to enter the details on any calendar.

Explanation:

It seems that XYZ who is a teacher has prepared a schedule for him/her for someday. It is quite confirmed that She/he takes 7 periods. And these are the details of what he/she be doing in each of them. And once he/she gets the Google Calendar ready, he/she will be alerted through a beep or a buzzing sound after each task is accomplished.

5 0
3 years ago
Which file types have .exe and .png as their extensions?
cricket20 [7]
EXE files are executable files.
PNG files are picture files like JPEG etc.
7 0
4 years ago
Other questions:
  • "a web server that is​ specially-built to manage and deliver business intelligence is called a​ _________."
    7·1 answer
  • Divide (10x^3 + 19x^2 + x - 7) by (5x + 2)​
    11·1 answer
  • An organizational structure that combines a functional structure with a divisional structure to emphasize project or program nee
    8·1 answer
  • To use the AutoCalculate area, select the range of cells containing the numbers for a calculation you want to verify and then pr
    7·1 answer
  • Dave wants to host a website and he needs an operating system that is free of cost. Which operating system should he use?
    11·1 answer
  • Ask the user to input an integer. Print out the next three consecutive numbers.
    14·2 answers
  • Which computer network component connects two different networks together and allows them to communicate?
    8·2 answers
  • Cual es el procedimientos para asistir en el transporte publico a personas discapacitadas
    6·1 answer
  • Need the answer ASAP!!! I’ll mark brainliest if correct
    5·1 answer
  • NO LINKS Please
    8·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!