Write a program that will try to append to the
tuple that you created in Q1.Why will this
code produce an error? Modify your code
using try and except statements to handle this
error,reporting to the user that an attempt
was made to append avalue to the tuple
[](
```python
list = ("hello", 10, "goodbye", 3, "goodnight", 5)
s = 0
for i in list:
if type(i)==str:
s=s+1
print(s)
```python
```