Hey @James-Dunton ,
Justin has moved on to other opportunities. I'm not the Python guy that Justin is, but I think I can help with your question.
chr() is a "method that returns a character (a string) from an integer (represents unicode code point of the character)."
You said you understand the first part, but let's review for my sake.
So in your example from the lab:
o=100 is assigning the integer 100 to the variable o (Need to talk to the lab designers, who uses o as a variable?!? 🤪
print('The character type of number 100 is:', chr(o))" This is where we call the method
chr(). We want it to look up the unicode value "100" and return the character that unicode decimal value represents.
Here is a snippet of a unicode table I got from Wikipedia...
From the table you can see 100 is the unicode decimal value for the Latin small letter D.
So this is why it is returning
If you change
o=103, you should get
g (check the table above)
For inquiring minds 😀, Capital A is 65, and capital X is 88.
Here is a link to the Wiki table, but there are several on the web.
Here is a link to the some information on chr().
Hope this helps!
**if the post above has answered the question, please mark the topic as solved.