Trying from \a to \z
Working once are\a \b \f \n \r \t \uXXXX \v \xXX
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 | Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)] on win32 Type "copyright", "credits" or "license()" for more information. >>> # we will use chr & ord later we will use \a to \z just to see which works and which does not. >>> unicode = '\u0021' >>> ord(unicode) 33 >>> chr(33) '!' >>> # now we will use end='/a' to end='/z' >>> #Working till now - \a \b \f \n \r \t \uXXXX \v \xXX >>> #Don't get confused with '/' and '\' >>> # using \a >>> for i in range(0,19+1): print(chr(33+i),end='\a') ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 >>> -------------------------------------------------- >>> # using \b >>> for i in range(0,19+1): print(chr(33+i),end='\b') ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 >>> -------------------------------------------------- >>> # using \f >>> for i in range(0,19+1): print(chr(33+i),end='\f') ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 >>> -------------------------------------------------- >>> # using \n >>> for i in range(0,19+1): print(chr(33+i),end='\n') ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 >>> -------------------------------------------------- >>> # using \r >>> for i in range(0,19+1): print(chr(33+i),end='\r') ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 >>> -------------------------------------------------- >>> # using \t >>> for i in range(0,19+1): print(chr(33+i),end='\t') ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 >>> -------------------------------------------------- >>> # using \uXXXX (X = digit / number / integer) >>> for i in range(0,19+1): print(chr(33+i),end='\u4627') !䘧"䘧#䘧$䘧%䘧&䘧'䘧(䘧)䘧*䘧+䘧,䘧-䘧.䘧/䘧0䘧1䘧2䘧3䘧4䘧 >>> -------------------------------------------------- >>> # using \v >>> for i in range(0,19+1): print(chr(33+i),end='\v') ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 >>> -------------------------------------------------- >>> #using \xXX (X = digit / number / integer) >>> for i in range(0,19+1): print(chr(33+i),end='\x24') !$"$#$$$%$&$'$($)$*$+$,$-$.$/$0$1$2$3$4$ >>> -------------------------------------------------- >>> -------------------------------------------------- >>> -------------------------------------------------- |
From Capital \A to \Z only \N & \U works
Refer:- https://docs.python.org/3.3/howto/unicode.html
Refer:- https://en.wikipedia.org/wiki/List_of_Unicode_characters
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | >>> # using \N{<Unicode Character Description>} >>> for i in range(0,19+1): print(chr(33+i),end='\N{GREEK CAPITAL LETTER DELTA}') !Δ"Δ#Δ$Δ%Δ&Δ'Δ(Δ)Δ*Δ+Δ,Δ-Δ.Δ/Δ0Δ1Δ2Δ3Δ4Δ >>> -------------------------------------------------- >>> for i in range(0,19+1): print(chr(33+i),end='\N{Modifier Letter Small H}') !ʰ"ʰ#ʰ$ʰ%ʰ&ʰ'ʰ(ʰ)ʰ*ʰ+ʰ,ʰ-ʰ.ʰ/ʰ0ʰ1ʰ2ʰ3ʰ4ʰ >>> -------------------------------------------------- >>> for i in range(0,19+1): print(chr(33+i),end='\N{Copyright sign}') !©"©#©$©%©&©'©(©)©*©+©,©-©.©/©0©1©2©3©4© >>> -------------------------------------------------- >>> -------------------------------------------------- >>> -------------------------------------------------- >>> # using \UXXXXXXXX (First 4 X are Zero 0 remaining 4 some number) >>> for i in range(0,19+1): print(chr(33+i),end='\U00007895') !碕"碕#碕$碕%碕&碕'碕(碕)碕*碕+碕,碕-碕.碕/碕0碕1碕2碕3碕4碕 >>> -------------------------------------------------- >>> -------------------------------------------------- >>> -------------------------------------------------- |
Other characters like \XXX , \\, \', \"
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | >>> # using \XXX (X = digit / number / integer) >>> for i in range(0,19+1): print(chr(33+i),end='\123') !S"S#S$S%S&S'S(S)S*S+S,S-S.S/S0S1S2S3S4S >>> -------------------------------------------------- >>> -------------------------------------------------- >>> -------------------------------------------------- >>> # using \\ which will skip >>> for i in range(0,19+1): print(chr(33+i),end='\\a') !\a"\a#\a$\a%\a&\a'\a(\a)\a*\a+\a,\a-\a.\a/\a0\a1\a2\a3\a4\a >>> -------------------------------------------------- >>> for i in range(0,19+1): print(chr(33+i),end='\\n') !\n"\n#\n$\n%\n&\n'\n(\n)\n*\n+\n,\n-\n.\n/\n0\n1\n2\n3\n4\n >>> -------------------------------------------------- >>> -------------------------------------------------- >>> -------------------------------------------------- >>> # using \' & \" >>> for i in range(0,19+1): print(chr(33+i),end='\'') !'"'#'$'%'&'''(')'*'+','-'.'/'0'1'2'3'4' >>> -------------------------------------------------- >>> for i in range(0,19+1): print(chr(33+i),end='\"') !"""#"$"%"&"'"(")"*"+","-"."/"0"1"2"3"4" >>> -------------------------------------------------- >>> -------------------------------------------------- >>> -------------------------------------------------- |
Hope you like the tutorial.
Python is simple and fun to play with and yet very powerful. 🔥