Online visitors

People learning around the world

Online

—

Visitors exploring W3Schools

Online visitors by country Circles show approximate country locations. The country list provides the visitor counts.

Circles represent countries, not exact visitor locations.

Country

Online

Loading country activity…

    Python Program to Find the ASCII Value of a Character

    Python Programming Examples


    This Python example code demonstrates a simple Python program to find the ASCII value of a character and print the output to the screen.

    Program:

    ch = 'G'
    print("The ASCII value of '" + ch + "' is", ord(ch))

    Program Output:

    The ASCII value of 'G' is 71


    Found This Page Useful? Share It!
    Get the Latest Tutorials and Updates
    Join us on Telegram

    Notifications

    Updates are enabled for this browser.

    Receive new tutorials, articles and learning resources. You can turn updates off anytime.