""" From "A SURVEY OF COMPUTATIONAL PHYSICS", Python eBook Version by RH Landau, MJ Paez, and CC Bordeianu Copyright Princeton University Press, Princeton, 2012; Book Copyright R Landau, Oregon State Unv, MJ Paez, Univ Antioquia, C Bordeianu, Univ Bucharest, 2012. Support by National Science Foundation , Oregon State Univ, Microsoft Corp""" # Directives.py illustrates escape and formatting characters import sys print("hello \n") print("\t it's me") # tabulator b = 73 print("decimal 73 as integer b = %d "%(b)) # for integer print("as octal b = %o"%(b)) # octal print("as hexadecimal b = %x "%(b)) # works hexadecimal print("learn \"Python\" ") # use of double quote symbol print("shows a backslash \\") # use of \\ print('use of single \' quotes \' ') # print single quotes