PRACTICE MAKES PERFECT-reverse-7/15


#1


Honestly don’t know what I’m doing. Any help would be great thanks :slight_smile:


#2

difficult to see from an image, please copy paste your code to the forum

looking at the error message, your list contains the same character over and over again, so something is wrong with loop/what you are appending to list

using str() to cast list to string won’t work. You need to .join() the list into a string


#3
return str(reverse)

When we convert a list to a string, we get a list in quotes.

str(['a', 'b', 'c', 'd'])

# =>  "['a', 'b', 'c', 'd']"

Use join to combine terms in a list into a single string.

In your code above it looks like the iterator variable is actually the numeral, 1. Try using lowercase i or any other letter.


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.