About 1,550,000 results
Open links in new tab
  1. python - How to get the ASCII value of a character - Stack Overflow

    Oct 19, 2023 · How do I get the ASCII value of a character as an int in Python? From here: The function ord() gets the int value of the char. And in case you want to convert back after playing …

  2. How to Convert a String to ASCII in Python? - Python Guides

    Jan 23, 2025 · Learn how to convert a string to ASCII in Python using techniques like ord(), encoding methods, and loops. Includes examples for data processing and validation!

  3. Convert string to ASCII value python - Stack Overflow

    Nov 2, 2023 · How would you convert a string to ASCII values? For example, "hi" would return [104 105]. I can individually do ord('h') and ord('i'), but it's going to be troublesome when there …

  4. Converting an Integer to ASCII Characters in Python

    Apr 17, 2025 · In this article, we will explore some simple and commonly used methods for converting an integer to ASCII characters in Python.

  5. Convert int to ASCII and back in Python - Stack Overflow

    Feb 28, 2017 · Use hex(id)[2:] and int(urlpart, 16). There are other options. base32 encoding your id could work as well, but I don't know that there's any library that does base32 encoding built …

  6. How to Convert String to ASCII Value in Python | Delft Stack

    Feb 2, 2024 · Converting a string to ASCII values is a valuable skill in Python programming, enabling various text-processing operations. This comprehensive guide explored different …

  7. Convert String List to ASCII Values - Python - GeeksforGeeks

    Feb 1, 2025 · A simple and efficient way to convert strings to ASCII values is by using list comprehension along with the ord () function. Explanation: The ord () function returns the …

  8. Python Program to Find ASCII Value of a Character

    Apr 15, 2024 · In this example, the function method1 returns the ASCII value of a given character using the ord() function in Python. It takes a character as input, converts it to its corresponding …

  9. Python ascii() Function - W3Schools

    The ascii() function returns a readable version of any object (Strings, Tuples, Lists, etc). The ascii() function will replace any non-ascii characters with escape characters: å will be replaced …

  10. Converting Strings to ASCII Values in Python 3 - DNMTechs

    Jul 4, 2024 · Converting strings to ASCII values is a common task when working with textual data in Python. In this article, we explored different methods to achieve this conversion using built …

  11. Some results have been removed
Refresh