Why am I getting out put "Hello world", when I am typing"print("\110\145\154\154\157\40\127\157\162\154\144\41")" | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Why am I getting out put "Hello world", when I am typing"print("\110\145\154\154\157\40\127\157\162\154\144\41")"

30th Aug 2020, 5:27 AM
Balam RaviKumar
Balam RaviKumar - avatar
2 Answers
+ 3
Each escaped number represents an octal (base 8) number. Convert the number to decimal, and you get the ASCII value of each character in string "Hello world!".
30th Aug 2020, 5:52 AM
Ipang
0
really?
30th Aug 2020, 5:43 AM
Rodion
Rodion - avatar