Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Logistics Lifeline Supply Chain Strategies

Authors: Ehsan Sheroy

1st Edition

7419377502, 978-7419377503

More Books

Students also viewed these Databases questions

Question

What is machine coupling?

Answered: 1 week ago