Loops for python

why the output shows “u”

Hey there.

Can you post the code that you ran which generated the output? Makes it easier for us to help you figure out what’s going on. :slight_smile:

like @thepitycoder says, code will help a lot. But its very likely because of unicode encoding

hobbies = []

Add your code below!

for hobby in range(3):
hobby =raw_input(“enter you hobbies”)
hobbies.append(hobby)
print hobbies

#its my code pls run it and check it

yep, unicode:

https://docs.python.org/2/howto/unicode.html

1 Like

its not the error ?
isnt it only encoding

its indeed not an error

1 Like

thanks for this :slight_smile:

I didn’t even think of that… :+1:

if you are as long on the forum as i am, and you have seen this issue 10+ times before, you will think of it

@stetim94 may be i ve seen but not remember of it

its sorry for violation of guidelines , i m beginner so not aware of all the rules and how to operate community :neutral_face: