Question

) Programming: Return and Print M Finst Back 22.1) Print greeting (o/s completed) NtLast BlockPy: #22.1) Print greeting write a function print greeting that consumes a name asa stringval e and prits out Hetto X·where X is the given name So for example, if the name Bruce Nayne was passed in, the function should print Hello Bruce Wayne. Try your function on a string. Execution Feedback: Syntax error Invalid syntax on line 3 Console Run 瓥Blocks Split., Text gReset ⑨Upload . gHistory
0 0
Add a comment Improve this question Transcribed image text
Answer #1
def print_greeting(name):
    print('Hello', name)


print_greeting("Bruce Wayne")

Hello Bruce Wayne Process finished with exit code 0

Add a comment
Know the answer?
Add Answer to:
) Programming: Return and Print M Finst Back 22.1) Print greeting (o/s completed) NtLast BlockPy: #22.1)...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Saved BlockPy: #33.8) Maximum Odd Use the Min/Max pattern to write a function maximum_odd that finds...

    Saved BlockPy: #33.8) Maximum Odd Use the Min/Max pattern to write a function maximum_odd that finds the highest odd value in the list (consumes a list of numbers and returns a number). Use the provided helper function is_odd (that consumes a single number and returns a boolean indicating whether it is true or false). Do not change the helper function is_odd. Call your maximum_odd function on your favorite list of numbers. Server Execution: Idle Feedback: Ready Console Run "Blocks 艹Split...

  • Python Programming 18- Calling Functions 2 K First < Back #18.1) A Dashing Name (2/5 completed)...

    Python Programming 18- Calling Functions 2 K First < Back #18.1) A Dashing Name (2/5 completed) Next > Last BlockPy: #18.1) A Dashing Name While organizing your MP3 collection, you discovered that all of the spaces in the filenames were replaced with "-". Using the String functions reference page, use the replace function to fix and then print the string value stored in the variable filename below. Console: View Trace Feedback: Algorithm Error Unused Variable The variable filename was given...

  • BlockPy: #33.8) Maximum Odd Use the Min/Max pattern to write a function maximum_odd that finds the...

    BlockPy: #33.8) Maximum Odd Use the Min/Max pattern to write a function maximum_odd that finds the highest odd value in the list (consumes a list of numbers and returns a number). Use the provided helper function is_odd (that consumes a single number and returns a boolean indicating whether it is true or false). Do not change the helper function is odd. Call your maximum_odd function on your favorite list of numbers Console Feedback: Instructor Feedback You cannot use the builtin...

  • 18.1 Lab Lesson 11 (Part 1 of 1) Part of lab lesson 11 There in one...

    18.1 Lab Lesson 11 (Part 1 of 1) Part of lab lesson 11 There in one part to lab lesson 11. The entire lab will be worth 100 points. Lab lesson 11 part 1 is worth 100 points For part 1 you will have 80 points if you enter the program and successfully run the program tests. An additional 20 points will be based on the style and formatting of your C++ code. Style points The 20 points for coding...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT