Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

all characters python

'0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
Comment

characters python

#check if a is uppercase,lowercase,other character or digits
a=int(input('enter'))
if chr(a)>'A' and chr(a)<'Z' : #here 'A' is 65 and 'Z' is 91
        print('upper case',a,'and ascii code',chr(a))
elif chr(a)>'a' and chr(a)<'z' : # here 'a' is 97 and 'z' is 122
        print('lower case',a, 'and ascii code is',chr(a))
elif chr(a)>'0' and chr(a)<'9' :# here '0' is 48 and '9' is 57
        print('digits',a,'and ascii code is',chr(a))
else:
        print('other special',a,'andcharacter ascii code ',chr(a))
Comment

char in python

there is no dataype as char in python
Comment

PREVIOUS NEXT
Code Example
Python :: filter json python 
Python :: getting url parameters with javascript 
Python :: if we use list in the dictionary 
Python :: python chatbot api 
Python :: how to get data from django session 
Python :: python code checker 
Python :: python list max value 
Python :: self python 
Python :: pandas remove duplicates 
Python :: how to get a user input in python 
Python :: find the range in python 
Python :: update python version pycharm 
Python :: numpy difference between two arrays 
Python :: how to slice string in python 
Python :: how to join two tuples in python 
Python :: print multiple strings in python 
Python :: df.info() in python 
Python :: how to create an auto clicker in python 
Python :: how to make a do while in python 
Python :: pass multiple arguments to map function python 
Python :: turn list of arrays into array 
Python :: selenium check if driver is open python 
Python :: three different randomn numbers python 
Python :: number data type in python 
Python :: sublime autocomplete python 
Python :: x = 10 x += 12 y = x/4 x = x + y in python 
Python :: get current scene file name godot 
Python :: add border to table in python pptx 
Python :: fb account api grabber 
Python :: projects for beginners in python to complete 
ADD CONTENT
Topic
Content
Source link
Name
2+6 =