IDNLearn.com is designed to help you find the answers you need quickly and easily. Ask your questions and receive detailed and reliable answers from our experienced and knowledgeable community members.

codes 7.2.8: Listed Greeting python
pls help i have no idea on how to fix this


Codes 728 Listed Greeting Python Pls Help I Have No Idea On How To Fix This class=

Sagot :

The listed greetings program is an illustration of Python functions.

The error in the program is that the program is not properly indented.

Python program uses indents to identify blocks of code.

So, the fix to the program is to properly indent the code, and the fix (without the comments) is as follows:

def greetings(s):

   x = s.split()

   print("Hello, "+x[0]+"! I also enjoy "+x[1]+"!")

Read more about Python programs at:

https://brainly.com/question/16240699

Your presence in our community is highly appreciated. Keep sharing your insights and solutions. Together, we can build a rich and valuable knowledge resource for everyone. Discover insightful answers at IDNLearn.com. We appreciate your visit and look forward to assisting you again.