Question: 1. Please write the following problem in Python 3 code. Please write code and not pseudo- code. 2. Please share your code and show all
1. Please write the following problem in Python 3 code. Please write code and not pseudo- code.
2. Please share your code and show all outputs.
- Problem:
- a, For each character in the string already saved in the variable str1, add each character to a list called chars.str1 = "I love python" # HINT: what's the accumulator? That should go here.
My output which is incorrect:
ac = "" kc = ' ' for c in str1: ac = dd+ac+c+kc+dc chars = ac print(chars)

Save & Run
Restvalue ActualExpected Notes Value Fail . onT.. 'n" Testing that chars is assigned to correct values Expand Differences Testing your code (Don't worry about actual and expected values) Fail ' Expand Differences You passed: 0.0% of the tests
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
