Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

chr() python

The chr() method returns a string representing 
a character whose Unicode code point is an integer.

print(chr(71), chr(101), 
chr(101), chr(107), 
chr(115), chr(32), 
chr(102), chr(111), 
chr(114),chr(32), 
chr(71), chr(101), 
chr(101), chr(107),  
chr(115)) 
-> G e e k s   f o r   G e e k s





Comment

what is chr function on python

# Convert integer 65 to ASCII Character ('A')
y = chr(65)
print(type(y), y)
 
# Print A-Z
for i in range(65, 65+25):
    print(chr(i), end = " , ")
Comment

PREVIOUS NEXT
Code Example
Python :: how to use a class in python 
Python :: how to make a python file delete itself 
Python :: DIF_GCD solution 
Python :: python for loop practice problems 
Python :: python lambda function use global variable 
Python :: python run things at certain datetimes 
Python :: string + string in python 
Python :: NumPy roll Example 
Python :: true and false in python 
Python :: uninstall python ubuntu 18.04 
Python :: python argsort 
Python :: python with example 
Python :: pahtlib join path 
Python :: sqlite python select with parameters 
Python :: python reply to email 
Python :: model.predict python 
Python :: numpy index of first true value 
Python :: how to get csv file first row first column value in python 
Python :: append to an array in 1st place python 
Python :: torch.stack 
Python :: optional parameter in python 
Python :: python trace table 
Python :: two underscores python 
Python :: sqlite query using string as parameter in python 
Python :: python generators 
Python :: how to register a model in django 
Python :: how to create a 2d array in python 
Python :: pyqt matplotlib 
Python :: numpy diag() 
Python :: return the first occurence of duplicates pandas 
ADD CONTENT
Topic
Content
Source link
Name
7+2 =