Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialOmer Khan
1,401 PointsI am not getting this one please someone can help really appreciated
I do not get this conversion completely.
2 Answers
Brandon Wall
5,512 PointsHmmm, I'm kind of taking a shot in the dark here because your question is very vague, it would help if you could explain a little better.
I looked at the quiz and i think you are asking how to handle converting to a different data type
int("3") # converts the string '3' to an int 3
str(3) # converts the int 3 to a string 3
float(3) # converts the int 3 to a float 3, this would return 3.0
ord('x') # returns the unicode code point/identifier for a one character string. I find this one is fun to play around with.
I'm probably missing a few but the first 3 are very useful.
Omer Khan
1,401 PointsThanks a lot