Question: Exercise: a) Write a Python statement to convert the string 'abcd' to a list of characters and name this list chars1. b) Write a

 Exercise: a) Write a Python statement to convert the string 'abcd' to a list of characters and name this list  

Exercise: a) Write a Python statement to convert the string 'abcd' to a list of characters and name this list chars1. b) Write a Python expression that will return the length of chars1. c) Write a Python expression that will return True if the character 'z' belongs to chars1 and False otherwise. d) Write a Python statement to convert the string 'apple' to a list of characters and name this list chars2. e) Write a Python statement that will concatenate chars1 and chars2 and name the new list chars3.

Step by Step Solution

3.47 Rating (154 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

a The following Python statement converts the string abcd to a list ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!