Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

find order of characters python

#uppercase,lowercaseand and special characters
ch=input('enter a character:')
a=ord(ch)#ordinall value
print('ascii value',a)
if a>=97 and a<123:
    print('lowercase',a)
elif a>=65 and a<91:
    print('uppercase',a)
elif  a>=48 and a<58:
    print('digit',a)
else:
    print('special charecter',a)
#output:
#case I
enter a character:4
ascii value 52
digit 52
#case II
enter a character:a
ascii value 97
lowercase 97
#caseIII
enter a character:A
ascii value 65
uppercase 65
#caseIV
enter a character:+
ascii value 43
special charecter 43
Comment

PREVIOUS NEXT
Code Example
Python :: pdf to text python 
Python :: how to create a countdown timer using python 
Python :: remove comments from python file 
Python :: python import worldcloud 
Python :: localize timezone python 
Python :: python kill process by name 
Python :: no such table: django_session admin 
Python :: Read XML file to Pandas DataFrame 
Python :: pytorch freeze layers 
Python :: python program to add two numbers 
Python :: how to add element at first position in array python 
Python :: python sqlite insert 
Python :: play mp3 file python 
Python :: python remove nan rows 
Python :: Math Module sqrt() Function in python 
Python :: get list file in folder python 
Python :: read file from s3 python 
Python :: creating venv on vscode linux 
Python :: converting binary to octal in python 
Python :: convert string to list of dictionaries 
Python :: how to print python 
Python :: unzip_data python 
Python :: search google images python 
Python :: when was python developed 
Python :: python calculate angle between two points 
Python :: how to make a numpy array 
Python :: user group template tag django 
Python :: python for loop even numbers 
Python :: The specified file cannot be played on the specified MCI device. The file may be corrupt, not in the correct format, or no file handler available for this format. python 
Python :: find the sum of all the multiples of 3 or 5 below 1000 python 
ADD CONTENT
Topic
Content
Source link
Name
6+9 =