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 install pandas-profiling 
Python :: check dir exist python 
Python :: how to convert utf-16 file to utf-8 in python 
Python :: numpy combinations of 5 bits 
Python :: esp8266 micropython ds18b20 
Python :: custom validation in django models 
Python :: django admin.py all fields 
Python :: pandas change date format to yyyy-mm-dd 
Python :: python check if number is integer or float 
Python :: fetch email from gmail using python site:stackoverflow.com 
Python :: python subprocess print stdout while process running 
Python :: how to move tkinter images 
Python :: python-telegram-bot 
Python :: extract zip file in python zipfile 
Python :: how to make an ai 
Python :: redirect in dajango 
Python :: reload flask on change 
Python :: multiline comment python 
Python :: the list of prime number in a given range python 
Python :: count a newline in string python 
Python :: wait in python 
Python :: crear una clase en python 
Python :: python collections Counter sort by key 
Python :: Converting Hex to RGB value in Python 
Python :: django login code 
Python :: version python 
Python :: how to convert the date column from string to a particular format in python 
Python :: python url shortener 
Python :: python copy 
Python :: how to add two numbers 
ADD CONTENT
Topic
Content
Source link
Name
9+4 =