Question: Given the following string, write a Python program that: converts the given string to a tuple finds and prints the length of the tuple. counts
Given the following string, write a Python program that:
- converts the given string to a tuple
- finds and prints the length of the tuple.
- counts and prints the number of uppercase C
- check whether W exists in the tuple
- gets the first 17 elements of the tuple and convert then into a new string. Print the new string. (Hint: you can use the the join() method of strings to convert a tuple to a string.)
string = "Coquitlam College,516 Brookmere Avenue, Coquitlam, BC Canada, V3J 1W9"
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
