Answers for "chr() function in Python"

10

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
Posted by: Guest on June-07-2020
1

chr() function in Python

print("Unicode character of integer 65 is", chr(65))
print("Unicode character of integer 8364 is", chr(8364))

# Print Alphabets using Unicode
for i in range(65, 65+26):
    print(chr(i), end = " , ")
Posted by: Guest on September-25-2021

Python Answers by Framework

Browse Popular Code Answers by Language