In [1]:
'hello'


Out[1]:
'hello'

In [2]:
"world"


Out[2]:
'world'

In [3]:
'this is also a string of characters with an ordered iindex ready for using'


Out[3]:
'this is also a string of characters with an ordered iindex ready for using'

In [4]:
'I\'m going on a trip to escapechar land'


Out[4]:
"I'm going on a trip to escapechar land"

In [5]:
"I'm not, I double wrapped."


Out[5]:
"I'm not, I double wrapped."

In [6]:
'"So did I!" said noescapies.'


Out[6]:
'"So did I!" said noescapies.'

In [7]:
"Let's try something very \r very new to Russ. Carriage return? Will it work? \n Who knows."


Out[7]:
"Let's try something very \r very new to Russ. Carriage return? Will it work? \n Who knows."

In [9]:
"Let's try something very \rvery new to Russ. Carriage return? Will it work? \nWho knows."


Out[9]:
"Let's try something very \rvery new to Russ. Carriage return? Will it work? \nWho knows."

In [11]:
'I suspect UTF-8 encoding and not ASCII'


Out[11]:
'I suspect UTF-8 encoding and not ASCII'

In [12]:
print('hello')


hello

In [13]:
print("Let's try something very \r very new to Russ. Carriage return? Will it work? \n Who knows.")


 very new to Russ. Carriage return? Will it work? 
 Who knows.

In [14]:
print("Let's try \t \t something very \n very new to Russ. \a Carriage return? Will it work? \n Who knows.\b ")


Let's try 	 	 something very 
 very new to Russ.  Carriage return? Will it work? 
 Who knows. 

In [15]:
print("Let's try \t \t something very \n very new to Russ. \a Carriage return? Will it work? \n Who knows. \b ")


Let's try 	 	 something very 
 very new to Russ.  Carriage return? Will it work? 
 Who knows.  

In [16]:
print("Let's try \t \t something very \n very new to Russ. \a Carriage \v \v return? Will it work? \n Who knows." + "\110\145\154\154\157\40\127\157\162\154\144\41")


Let's try 	 	 something very 
 very new to Russ.  Carriage   return? Will it work? 
 Who knows.Hello World!

In [23]:
print("Character named name in the Unicode database.")


Character named name in the Unicode database.

\N{name}


In [24]:
"hello world one"
"hello world two"


Out[24]:
'hello world two'

In [25]:
print("hello world one")
"hello world two"


hello world one
Out[25]:
'hello world two'

In [26]:
print("hello world one")
print("hello world two")


hello world one
hello world two

In [27]:
print('hellow \n world')


hellow 
 world

In [28]:
print('hellow \nworld')


hellow 
world

In [31]:
print('hellow \n world \n  hellow \n world \n  hellow \n world \n  hellow \n world \n  hellow \n\t world \n\t  hellow \n world \n\t hellow \n world \n hellow \n world \n hellow \n world \n hellow \n world \n hellow \n world \n hellow \n world \n hellow \n world \n hellow \n world')


hellow 
 world 
  hellow 
 world 
  hellow 
 world 
  hellow 
 world 
  hellow 
	 world 
	  hellow 
 world 
	 hellow 
 world 
 hellow 
 world 
 hellow 
 world 
 hellow 
 world 
 hellow 
 world 
 hellow 
 world 
 hellow 
 world 
 hellow 
 world

In [38]:
print('hello \n \t hello \n \t \t hello \n \t \t \t hello \n \t \t \t \t hello \n \t \t \t hello \n \t \t hello \n \t hello \nhello')


hello 
 	 hello 
 	 	 hello 
 	 	 	 hello 
 	 	 	 	 hello 
 	 	 	 hello 
 	 	 hello 
 	 hello 
hello

In [39]:
len('hello')


Out[39]:
5

In [40]:
len('I am Happy')


Out[40]:
10

White space counts as indexed locations.


In [ ]: