Question: does not include the given punctuation characters. Use a for loop to traverse through the collection ( i . e . the string ) ,
does not include the given punctuation characters. Use a for loop to traverse
through the collection ie the string if any element of the string is a character
in the parenthesis ;: then remove it from the list. To do this you will
need to create a new string and initialise it to an empty string outside the for
loop. During traversal if a punctuation character is in the collection then don't
add it to the new string, all other items are included in the new string.
Note: To check if a given character is any one of the following
; you can use the following statement;
if c in ;COMP is a lot of fun'
note this should be in python code.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
