i. Strings

Strings are data structures that are built into python. They are written in single quotes and help create a huge number of programs. Example,


>>>a = 'thisisallinastring' >>>a[4]       #meaning the fifth character(0,1,2,3,4)
'i'
>>>a[8]
'l'
>>>a[2:7]     #meaning the second and seventh
'isisa'
>>>a[:4]    #meaning just the first four
'this'
>>>a[4:]     #means everythig except the last four
'isallinastring'


i'll add more to strings soon