Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribedimage text in transcribed

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

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

1 2 3 Data Base Techniques

Authors: Dick Andersen

1st Edition

0880223464, 978-0880223461

More Books

Students also viewed these Databases questions