Skip to content
This repository was archived by the owner on Nov 18, 2022. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions Python/get_ascii_value.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# python program to print ASCII(decimal system) value of a given character(one character string)

trfl=True

while trfl:
a=input("Enter any character : ")
print("ASCII value of " + a +" is = ", ord(a))
x=input("For re-do, type Y and to exit type N - ")
if x=='n':
trfl=False
print("See you next time.")