Skip to content

Instantly share code, notes, and snippets.

@mayankdawar
Created February 22, 2020 19:53
Show Gist options
  • Select an option

  • Save mayankdawar/7f02340d4988aa3e83a294a3457944ac to your computer and use it in GitHub Desktop.

Select an option

Save mayankdawar/7f02340d4988aa3e83a294a3457944ac to your computer and use it in GitHub Desktop.
For each character in the string saved in ael, append that character to a list that should be saved in a variable app.
ael = "python!"
lst = []
for i in ael:
lst.append(i)
app = lst
@IvanFrecia
Copy link

if you set variable app as your empty list you don't have to run app = lst

ael = "python!"
app = []
for i in ael:
app.append(i)
print(app)

#Thank you for posting all these helpful answers, really helpful when I get stuck in this course!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment