getting-started-with-lists/script.rst.orig
author Amit Sethi
Tue, 09 Nov 2010 15:40:53 +0530
changeset 418 8a42b4203f6d
child 442 a9b71932cbfa
permissions -rw-r--r--
"Merging heads"
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
418
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
     1
<?xml version="1.0" encoding="utf-8" ?>
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
     2
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
     3
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
     4
<head>
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
     5
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
     6
<meta name="generator" content="Docutils 0.6: http://docutils.sourceforge.net/" />
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
     7
<title></title>
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
     8
<style type="text/css">
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
     9
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    10
/*
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    11
:Author: David Goodger (goodger@python.org)
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    12
:Id: $Id: html4css1.css 5951 2009-05-18 18:03:10Z milde $
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    13
:Copyright: This stylesheet has been placed in the public domain.
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    14
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    15
Default cascading style sheet for the HTML output of Docutils.
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    16
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    17
See http://docutils.sf.net/docs/howto/html-stylesheets.html for how to
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    18
customize this style sheet.
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    19
*/
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    20
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    21
/* used to remove borders from tables and images */
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    22
.borderless, table.borderless td, table.borderless th {
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    23
  border: 0 }
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    24
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    25
table.borderless td, table.borderless th {
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    26
  /* Override padding for "table.docutils td" with "! important".
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    27
     The right padding separates the table cells. */
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    28
  padding: 0 0.5em 0 0 ! important }
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    29
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    30
.first {
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    31
  /* Override more specific margin styles with "! important". */
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    32
  margin-top: 0 ! important }
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    33
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    34
.last, .with-subtitle {
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    35
  margin-bottom: 0 ! important }
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    36
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    37
.hidden {
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    38
  display: none }
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    39
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    40
a.toc-backref {
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    41
  text-decoration: none ;
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    42
  color: black }
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    43
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    44
blockquote.epigraph {
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    45
  margin: 2em 5em ; }
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    46
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    47
dl.docutils dd {
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    48
  margin-bottom: 0.5em }
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    49
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    50
/* Uncomment (and remove this text!) to get bold-faced definition list terms
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    51
dl.docutils dt {
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    52
  font-weight: bold }
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    53
*/
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    54
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    55
div.abstract {
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    56
  margin: 2em 5em }
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    57
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    58
div.abstract p.topic-title {
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    59
  font-weight: bold ;
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    60
  text-align: center }
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    61
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    62
div.admonition, div.attention, div.caution, div.danger, div.error,
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    63
div.hint, div.important, div.note, div.tip, div.warning {
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    64
  margin: 2em ;
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    65
  border: medium outset ;
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    66
  padding: 1em }
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    67
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    68
div.admonition p.admonition-title, div.hint p.admonition-title,
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    69
div.important p.admonition-title, div.note p.admonition-title,
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    70
div.tip p.admonition-title {
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    71
  font-weight: bold ;
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    72
  font-family: sans-serif }
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    73
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    74
div.attention p.admonition-title, div.caution p.admonition-title,
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    75
div.danger p.admonition-title, div.error p.admonition-title,
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    76
div.warning p.admonition-title {
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    77
  color: red ;
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    78
  font-weight: bold ;
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    79
  font-family: sans-serif }
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    80
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    81
/* Uncomment (and remove this text!) to get reduced vertical space in
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    82
   compound paragraphs.
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    83
div.compound .compound-first, div.compound .compound-middle {
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    84
  margin-bottom: 0.5em }
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    85
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    86
div.compound .compound-last, div.compound .compound-middle {
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    87
  margin-top: 0.5em }
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    88
*/
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    89
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    90
div.dedication {
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    91
  margin: 2em 5em ;
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    92
  text-align: center ;
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    93
  font-style: italic }
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    94
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    95
div.dedication p.topic-title {
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    96
  font-weight: bold ;
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    97
  font-style: normal }
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    98
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
    99
div.figure {
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   100
  margin-left: 2em ;
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   101
  margin-right: 2em }
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   102
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   103
div.footer, div.header {
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   104
  clear: both;
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   105
  font-size: smaller }
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   106
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   107
div.line-block {
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   108
  display: block ;
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   109
  margin-top: 1em ;
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   110
  margin-bottom: 1em }
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   111
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   112
div.line-block div.line-block {
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   113
  margin-top: 0 ;
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   114
  margin-bottom: 0 ;
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   115
  margin-left: 1.5em }
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   116
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   117
div.sidebar {
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   118
  margin: 0 0 0.5em 1em ;
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   119
  border: medium outset ;
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   120
  padding: 1em ;
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   121
  background-color: #ffffee ;
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   122
  width: 40% ;
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   123
  float: right ;
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   124
  clear: right }
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   125
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   126
div.sidebar p.rubric {
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   127
  font-family: sans-serif ;
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   128
  font-size: medium }
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   129
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   130
div.system-messages {
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   131
  margin: 5em }
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   132
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   133
div.system-messages h1 {
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   134
  color: red }
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   135
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   136
div.system-message {
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   137
  border: medium outset ;
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   138
  padding: 1em }
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   139
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   140
div.system-message p.system-message-title {
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   141
  color: red ;
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   142
  font-weight: bold }
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   143
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   144
div.topic {
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   145
  margin: 2em }
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   146
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   147
h1.section-subtitle, h2.section-subtitle, h3.section-subtitle,
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   148
h4.section-subtitle, h5.section-subtitle, h6.section-subtitle {
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   149
  margin-top: 0.4em }
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   150
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   151
h1.title {
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   152
  text-align: center }
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   153
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   154
h2.subtitle {
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   155
  text-align: center }
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   156
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   157
hr.docutils {
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   158
  width: 75% }
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   159
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   160
img.align-left, .figure.align-left{
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   161
  clear: left ;
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   162
  float: left ;
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   163
  margin-right: 1em }
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   164
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   165
img.align-right, .figure.align-right {
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   166
  clear: right ;
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   167
  float: right ;
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   168
  margin-left: 1em }
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   169
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   170
.align-left {
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   171
  text-align: left }
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   172
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   173
.align-center {
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   174
  clear: both ;
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   175
  text-align: center }
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   176
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   177
.align-right {
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   178
  text-align: right }
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   179
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   180
/* reset inner alignment in figures */
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   181
div.align-right {
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   182
  text-align: left }
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   183
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   184
/* div.align-center * { */
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   185
/*   text-align: left } */
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   186
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   187
ol.simple, ul.simple {
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   188
  margin-bottom: 1em }
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   189
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   190
ol.arabic {
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   191
  list-style: decimal }
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   192
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   193
ol.loweralpha {
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   194
  list-style: lower-alpha }
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   195
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   196
ol.upperalpha {
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   197
  list-style: upper-alpha }
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   198
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   199
ol.lowerroman {
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   200
  list-style: lower-roman }
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   201
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   202
ol.upperroman {
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   203
  list-style: upper-roman }
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   204
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   205
p.attribution {
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   206
  text-align: right ;
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   207
  margin-left: 50% }
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   208
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   209
p.caption {
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   210
  font-style: italic }
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   211
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   212
p.credits {
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   213
  font-style: italic ;
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   214
  font-size: smaller }
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   215
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   216
p.label {
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   217
  white-space: nowrap }
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   218
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   219
p.rubric {
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   220
  font-weight: bold ;
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   221
  font-size: larger ;
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   222
  color: maroon ;
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   223
  text-align: center }
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   224
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   225
p.sidebar-title {
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   226
  font-family: sans-serif ;
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   227
  font-weight: bold ;
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   228
  font-size: larger }
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   229
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   230
p.sidebar-subtitle {
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   231
  font-family: sans-serif ;
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   232
  font-weight: bold }
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   233
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   234
p.topic-title {
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   235
  font-weight: bold }
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   236
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   237
pre.address {
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   238
  margin-bottom: 0 ;
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   239
  margin-top: 0 ;
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   240
  font: inherit }
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   241
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   242
pre.literal-block, pre.doctest-block {
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   243
  margin-left: 2em ;
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   244
  margin-right: 2em }
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   245
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   246
span.classifier {
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   247
  font-family: sans-serif ;
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   248
  font-style: oblique }
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   249
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   250
span.classifier-delimiter {
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   251
  font-family: sans-serif ;
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   252
  font-weight: bold }
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   253
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   254
span.interpreted {
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   255
  font-family: sans-serif }
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   256
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   257
span.option {
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   258
  white-space: nowrap }
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   259
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   260
span.pre {
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   261
  white-space: pre }
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   262
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   263
span.problematic {
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   264
  color: red }
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   265
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   266
span.section-subtitle {
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   267
  /* font-size relative to parent (h1..h6 element) */
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   268
  font-size: 80% }
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   269
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   270
table.citation {
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   271
  border-left: solid 1px gray;
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   272
  margin-left: 1px }
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   273
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   274
table.docinfo {
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   275
  margin: 2em 4em }
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   276
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   277
table.docutils {
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   278
  margin-top: 0.5em ;
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   279
  margin-bottom: 0.5em }
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   280
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   281
table.footnote {
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   282
  border-left: solid 1px black;
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   283
  margin-left: 1px }
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   284
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   285
table.docutils td, table.docutils th,
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   286
table.docinfo td, table.docinfo th {
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   287
  padding-left: 0.5em ;
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   288
  padding-right: 0.5em ;
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   289
  vertical-align: top }
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   290
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   291
table.docutils th.field-name, table.docinfo th.docinfo-name {
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   292
  font-weight: bold ;
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   293
  text-align: left ;
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   294
  white-space: nowrap ;
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   295
  padding-left: 0 }
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   296
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   297
h1 tt.docutils, h2 tt.docutils, h3 tt.docutils,
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   298
h4 tt.docutils, h5 tt.docutils, h6 tt.docutils {
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   299
  font-size: 100% }
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   300
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   301
ul.auto-toc {
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   302
  list-style-type: none }
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   303
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   304
</style>
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   305
</head>
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   306
<body>
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   307
<div class="document">
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   308
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   309
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   310
<div class="section" id="objective-questions">
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   311
<h1>Objective Questions</h1>
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   312
<!-- A mininum of 8 questions here (along with answers) -->
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   313
<ol class="arabic">
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   314
<li><p class="first">How do you create an empty list?</p>
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   315
<pre class="literal-block">
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   316
empty=[]
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   317
</pre>
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   318
</li>
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   319
<li><p class="first">What is the most important property of sequence data types like lists?</p>
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   320
<p>The elements are in order and can be accessed by index numbers.</p>
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   321
</li>
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   322
<li><p class="first">Can you have a list inside a list ?</p>
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   323
<p>Yes,List can contain all the other data types, including list.</p>
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   324
<p>Example:
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   325
list_in_list=[2.3,[2,4,6],'string,'all datatypes can be there']</p>
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   326
</li>
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   327
<li><p class="first">What is the index number of the first element in a list?</p>
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   328
<p>0
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   329
nonempty = ['spam', 'eggs', 100, 1.234]
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   330
nonempty[0]</p>
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   331
</li>
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   332
<li><p class="first">How would you access the end of a list without finding its length?</p>
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   333
<p>Using negative indices. We can the list from the end using negative indices.</p>
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   334
<p>::
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   335
nonempty = ['spam', 'eggs', 100, 1.234]
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   336
nonempty[-1]</p>
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   337
</li>
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   338
<li><p class="first">What is the function to find the length of a list?</p>
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   339
<p>len</p>
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   340
</li>
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   341
<li><p class="first">Delete the last element from list sq=[5,4,3,2,1,0]</p>
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   342
<p>del(sq[-1])</p>
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   343
</li>
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   344
<li><p class="first">How many will you have to use remove function to remove all 6's from the given list sq=[2,5,6,7,6,4,6]?</p>
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   345
<p>3</p>
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   346
</li>
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   347
</ol>
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   348
</div>
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   349
<div class="section" id="larger-questions">
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   350
<h1>Larger Questions</h1>
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   351
<!-- A minimum of 2 questions here (along with answers) -->
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   352
<p>1. Add all elemets of seq1=['e','f','g','h']
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   353
to the sequence seq=['a','b','c','d']</p>
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   354
<ol class="arabic simple" start="2">
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   355
<li>Delete all elements of seq1=[3,5,6] from sequence
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   356
seq=[1,2,3,4,5,6,7,8,9]</li>
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   357
</ol>
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   358
</div>
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   359
</div>
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   360
</body>
8a42b4203f6d "Merging heads"
Amit Sethi
parents:
diff changeset
   361
</html>