Horje
find order of characters  python Code Example
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




Python

Related
replace error with nan pandas Code Example replace error with nan pandas Code Example
Delete the node at a given position 2 in a linked list and return a reference to the head node. The head is at position 0. The list may be empty after you delete the node. In that case, retur Delete the node at a given position 2 in a linked list and return a reference to the head node. The head is at position 0. The list may be empty after you delete the node. In that case, retur
python program to multiplies all the items in a list using function Code Example python program to multiplies all the items in a list using function Code Example
transparancy argument pyplot Code Example transparancy argument pyplot Code Example
pandas tuple from two columns Code Example pandas tuple from two columns Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
6