# take input
      string = input("Enter any string: ")
      # printing ascii value of each character
      for i in range(len(string)):
          print("The ASCII value of character %c = %d" %(string[i], ord(string[i])))
      
      Python language logo

      String to ASCII

      0

      0

      avatar
      Mahendra Kumar
      pythonList
      beginner
      strings

      program to covert String to ASCII in Python

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.