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.")