Question

hi i dont know and understand what this assignment wants me to do can some please...

hi i dont know and understand what this assignment wants me to do can some please explain it to me thank you

Modify the print_face function to have a third parameter mouth and use it in the final print statement.


def print_face(eye, face_char):

print(' ', eye, ' ', eye) # Print eyes
print(' ', face_char) # Print nose
print(' ', face_char*5) # Print mouth
return

print_face('o', 'x')

0 0
Add a comment Improve this question Transcribed image text
Answer #1

try this one..

===============================================================

Program:

===============================================================

def print_face(eye, face_char, mouth_char):

   print(' ', eye, ' ', eye) # Print eyes
   print('    ', face_char)    # Print nose
   print(' ', mouth_char)    # Print mouth
   return

print_face('o', 'x', "(***)")


===============================================================

Sample Output:

nirmalsharma@ubuntu:~/HomeworkLib_solutions/23_04_2018s python print_output.py 0 0 ntrnalSharna@ubuntu:-/HomeworkLib-solutions/23-04-2018

===============================================================

Kindly Check and Verify Thanks..!!!

Add a comment
Know the answer?
Add Answer to:
hi i dont know and understand what this assignment wants me to do can some please...
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
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
ADVERTISEMENT