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.

  1. Problem:
  2. 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)

1. Please write the following problem in Python 3 code. Please write

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

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!