Question
Write a function that accepts two strings as the arguments, returns the characters that occur in both strings. For example, if the arguments are apple@123
Write a function that accepts two strings as the arguments, returns the characters that occur in both strings. For example, if the arguments are apple@123 and banana@#345, your program should return a@3.
5. Write a function that accepts a file name in the form of a string as the argument. Read the entire contents from the text file as a string and reverse the order of characters in the string. Append the reversed string into the same text file.
6. Write a function that accepts two lists of strings as arguments. Merge two lists together and then remove all the alphabetic letters from the merged list. Return the merged list. For example, if the two lists are [a, 2, b, 1, %, b] and [b, ?, c, a, 3, 4, g], your function should return [2, 1, %, ?, 3, 4]
python
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started