Loops for python


#1

why the output shows “u”


#2

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:


#3

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


#4

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


#5

yep, unicode:

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


#6

its not the error ?
isnt it only encoding


#7

its indeed not an error


#8

thanks for this :slight_smile:


#9

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


#10

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


#11

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


#12

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