Source Code:
(back to article)
# Get the ASCII value of the first character in a string string = "Hello" ascii_value = ord(string[0]) print(ascii_value) # Output: 72
Result:
Report an issue