Explore Westonci.ca, the premier Q&A site that helps you find precise answers to your questions, no matter the topic. Our platform provides a seamless experience for finding precise answers from a network of experienced professionals. Explore comprehensive solutions to your questions from a wide range of professionals on our user-friendly platform.

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

Thank you for your visit. We're dedicated to helping you find the information you need, whenever you need it. Thank you for choosing our platform. We're dedicated to providing the best answers for all your questions. Visit us again. Thank you for choosing Westonci.ca as your information source. We look forward to your next visit.