From 902cbd8ebe8aec90b6ece9a914906b8595bea37d Mon Sep 17 00:00:00 2001 From: Aashutosh Kattel <90999891+aashu-kattel@users.noreply.github.com> Date: Sun, 2 Oct 2022 18:45:11 +0545 Subject: [PATCH] .py prog. to get ascii value of any character --- Python/get_ascii_value.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Python/get_ascii_value.py diff --git a/Python/get_ascii_value.py b/Python/get_ascii_value.py new file mode 100644 index 0000000..700f677 --- /dev/null +++ b/Python/get_ascii_value.py @@ -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.")