Question: In python, please include comment Please include docstring, example below Write a program that asks a user to type in two strings and that prints
In python, please include comment
Please include docstring, example below

Write a program that asks a user to type in two strings and that prints . the characters that occur in both strings the characters that occur in one string but not the other the letters that don't occur in either string Use the set function to turn a string into a set of characters. Test cases: 1. You can't have the cake and eat it too. 2. A gentle answer turns away wrath, but a harsh word stirs up anger. 3. The love of god does not find, but creates, that which is pleasing to it. The love of man comes into being through that which is pleasing to it. (Martin Luther) For Each function, you should have a Comment Header, docstring, closely resemble this in terms of format and information line item by line item: def reverse(string): Function: reversel string ) Parameters: string - string to be reversed Outputs: None Returns: reversed string Author: Jack Ryan Date: 2016.10.05 Modifications: 2017.10.19 Description: This function takes a string argument and reverse it. It's algorithm involves recursive calls of the function itself. The return value is the reversed string. *****
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
