Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Question 1 100 pts Write a Python program that performs the following tasks: (1) create a variable my-string, and assign '12a#43a5#6a9a#32' to it. Print the
Question 1 100 pts Write a Python program that performs the following tasks: (1) create a variable my-string, and assign '12a#43a5#6a9a#32' to it. Print the original my_string. (2) remove all '#'s from my-string using the replace method (replacing them to empty string). Update and print my string (3) Split my_string using the split method, assign the returned list to variable my list. Print my_list. Original string : 12a#43a5#6a9a#32 After replacement: 12a43a56a9a32 my list is ['12', '43', '56', '9', '32' HTML Editor Paragraph
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