Answers for "how to print special characters in a string in python"

1

special characters list in python

#this is the speical char list
symbols = {'~', ':', "'", '+', '[', '\', '@', '^', '{', '%', '(', '-', '"', '*', '|', ',', '&', '<', '`', '}', '.', '_', '=', ']', '!', '>', ';', '?', '#', '$', ')', '/'}
print(symbols)
Posted by: Guest on June-26-2021
2

python print show special characters

a = "HellotWorldnHello World"
print(repr(a))
# 'HellotWorldnHello World'
Posted by: Guest on August-05-2020

Code answers related to "how to print special characters in a string in python"

Python Answers by Framework

Browse Popular Code Answers by Language