Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Welcome to the home page of the department of Computer Engineering (CPE) at Jordan University of Science and Technology (JUST). The website provides useful information
Welcome to the home page of the department of Computer Engineering (CPE) at Jordan University of Science and Technology (JUST). The website provides useful information about our undergraduate and graduate programs as well as the research areas in our department. Continuously ranked among the best in Jordan, the department offers both undergraduate and graduate programs. Our B.S. and M.S. graduates are recruited by different companies in Jordan and worldwide. Also, some of our students pursue their studies in Ph.D. programs at top ranked universities in the United States of America, Canada, and Europe. Write Python code that prints the following menu and performs the selected task. Your code should print the menu repeatedly till the user enter 6. You should use regular expressions to solve the Labwork. 1. Print all words that starts with a given character. 2. Print all words that ends with a given character. 3. Replace a string with another string. 4. Split the string at the given character or expression. 5. print all the words that have the given length. 6. Exit Enter choice: Your code should read the data from text file "data.txt
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