basic-data-type/slides.tex
author bhanu
Thu, 11 Nov 2010 02:16:07 +0530
changeset 477 0406115dccd1
parent 418 8a42b4203f6d
permissions -rw-r--r--
language check done for `matrices`
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
418
8a42b4203f6d "Merging heads"
Amit Sethi
parents: 412
diff changeset
     1
% Created 2010-11-09 Tue 15:26
320
223044cf254f Adding new format st-scripts with questions etc for basic-data-type and
amit
parents:
diff changeset
     2
\documentclass[presentation]{beamer}
223044cf254f Adding new format st-scripts with questions etc for basic-data-type and
amit
parents:
diff changeset
     3
\usepackage[latin1]{inputenc}
223044cf254f Adding new format st-scripts with questions etc for basic-data-type and
amit
parents:
diff changeset
     4
\usepackage[T1]{fontenc}
406
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
     5
\usepackage{fixltx2e}
320
223044cf254f Adding new format st-scripts with questions etc for basic-data-type and
amit
parents:
diff changeset
     6
\usepackage{graphicx}
223044cf254f Adding new format st-scripts with questions etc for basic-data-type and
amit
parents:
diff changeset
     7
\usepackage{longtable}
223044cf254f Adding new format st-scripts with questions etc for basic-data-type and
amit
parents:
diff changeset
     8
\usepackage{float}
223044cf254f Adding new format st-scripts with questions etc for basic-data-type and
amit
parents:
diff changeset
     9
\usepackage{wrapfig}
223044cf254f Adding new format st-scripts with questions etc for basic-data-type and
amit
parents:
diff changeset
    10
\usepackage{soul}
418
8a42b4203f6d "Merging heads"
Amit Sethi
parents: 412
diff changeset
    11
\usepackage{t1enc}
406
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
    12
\usepackage{textcomp}
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
    13
\usepackage{marvosym}
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
    14
\usepackage{wasysym}
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
    15
\usepackage{latexsym}
320
223044cf254f Adding new format st-scripts with questions etc for basic-data-type and
amit
parents:
diff changeset
    16
\usepackage{amssymb}
223044cf254f Adding new format st-scripts with questions etc for basic-data-type and
amit
parents:
diff changeset
    17
\usepackage{hyperref}
406
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
    18
\tolerance=1000
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
    19
\usepackage[english]{babel} \usepackage{ae,aecompl}
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
    20
\usepackage{mathpazo,courier,euler} \usepackage[scaled=.95]{helvet}
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
    21
\usepackage{listings}
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
    22
\lstset{language=Python, basicstyle=\ttfamily\bfseries,
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
    23
commentstyle=\color{red}\itshape, stringstyle=\color{darkgreen},
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
    24
showstringspaces=false, keywordstyle=\color{blue}\bfseries}
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
    25
\providecommand{\alert}[1]{\textbf{#1}}
320
223044cf254f Adding new format st-scripts with questions etc for basic-data-type and
amit
parents:
diff changeset
    26
223044cf254f Adding new format st-scripts with questions etc for basic-data-type and
amit
parents:
diff changeset
    27
\title{Plotting Data }
223044cf254f Adding new format st-scripts with questions etc for basic-data-type and
amit
parents:
diff changeset
    28
\author{FOSSEE}
223044cf254f Adding new format st-scripts with questions etc for basic-data-type and
amit
parents:
diff changeset
    29
\date{2010-09-14 Tue}
223044cf254f Adding new format st-scripts with questions etc for basic-data-type and
amit
parents:
diff changeset
    30
406
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
    31
\usetheme{Warsaw}\usecolortheme{default}\useoutertheme{infolines}\setbeamercovered{transparent}
320
223044cf254f Adding new format st-scripts with questions etc for basic-data-type and
amit
parents:
diff changeset
    32
\begin{document}
223044cf254f Adding new format st-scripts with questions etc for basic-data-type and
amit
parents:
diff changeset
    33
223044cf254f Adding new format st-scripts with questions etc for basic-data-type and
amit
parents:
diff changeset
    34
\maketitle
223044cf254f Adding new format st-scripts with questions etc for basic-data-type and
amit
parents:
diff changeset
    35
223044cf254f Adding new format st-scripts with questions etc for basic-data-type and
amit
parents:
diff changeset
    36
223044cf254f Adding new format st-scripts with questions etc for basic-data-type and
amit
parents:
diff changeset
    37
223044cf254f Adding new format st-scripts with questions etc for basic-data-type and
amit
parents:
diff changeset
    38
223044cf254f Adding new format st-scripts with questions etc for basic-data-type and
amit
parents:
diff changeset
    39
223044cf254f Adding new format st-scripts with questions etc for basic-data-type and
amit
parents:
diff changeset
    40
406
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
    41
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
    42
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
    43
320
223044cf254f Adding new format st-scripts with questions etc for basic-data-type and
amit
parents:
diff changeset
    44
\begin{frame}
406
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
    45
\frametitle{Outline}
320
223044cf254f Adding new format st-scripts with questions etc for basic-data-type and
amit
parents:
diff changeset
    46
\label{sec-1}
223044cf254f Adding new format st-scripts with questions etc for basic-data-type and
amit
parents:
diff changeset
    47
\begin{itemize}
223044cf254f Adding new format st-scripts with questions etc for basic-data-type and
amit
parents:
diff changeset
    48
406
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
    49
\item Datatypes in Python
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
    50
\label{sec-1_1}%
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
    51
\begin{itemize}
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
    52
412
bb45826efe74 Changes to basic data-types.
Puneeth Chaganti <punchagan@fossee.in>
parents: 406
diff changeset
    53
\item Numbers\\
bb45826efe74 Changes to basic data-types.
Puneeth Chaganti <punchagan@fossee.in>
parents: 406
diff changeset
    54
\label{sec-1_1_1}%
bb45826efe74 Changes to basic data-types.
Puneeth Chaganti <punchagan@fossee.in>
parents: 406
diff changeset
    55
\item Boolean\\
bb45826efe74 Changes to basic data-types.
Puneeth Chaganti <punchagan@fossee.in>
parents: 406
diff changeset
    56
\label{sec-1_1_2}%
bb45826efe74 Changes to basic data-types.
Puneeth Chaganti <punchagan@fossee.in>
parents: 406
diff changeset
    57
\item Sequence\\
bb45826efe74 Changes to basic data-types.
Puneeth Chaganti <punchagan@fossee.in>
parents: 406
diff changeset
    58
\label{sec-1_1_3}%
bb45826efe74 Changes to basic data-types.
Puneeth Chaganti <punchagan@fossee.in>
parents: 406
diff changeset
    59
\end{itemize} % ends low level
406
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
    60
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
    61
\item Operators in Python
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
    62
\label{sec-1_2}%
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
    63
\begin{itemize}
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
    64
412
bb45826efe74 Changes to basic data-types.
Puneeth Chaganti <punchagan@fossee.in>
parents: 406
diff changeset
    65
\item Arithmetic Operators\\
bb45826efe74 Changes to basic data-types.
Puneeth Chaganti <punchagan@fossee.in>
parents: 406
diff changeset
    66
\label{sec-1_2_1}%
bb45826efe74 Changes to basic data-types.
Puneeth Chaganti <punchagan@fossee.in>
parents: 406
diff changeset
    67
\item Boolean Operators\\
bb45826efe74 Changes to basic data-types.
Puneeth Chaganti <punchagan@fossee.in>
parents: 406
diff changeset
    68
\label{sec-1_2_2}%
bb45826efe74 Changes to basic data-types.
Puneeth Chaganti <punchagan@fossee.in>
parents: 406
diff changeset
    69
\end{itemize} % ends low level
406
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
    70
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
    71
\item Python Sequence Datatypes
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
    72
\label{sec-1_3}%
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
    73
\begin{itemize}
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
    74
412
bb45826efe74 Changes to basic data-types.
Puneeth Chaganti <punchagan@fossee.in>
parents: 406
diff changeset
    75
\item list\\
bb45826efe74 Changes to basic data-types.
Puneeth Chaganti <punchagan@fossee.in>
parents: 406
diff changeset
    76
\label{sec-1_3_1}%
bb45826efe74 Changes to basic data-types.
Puneeth Chaganti <punchagan@fossee.in>
parents: 406
diff changeset
    77
\item string\\
bb45826efe74 Changes to basic data-types.
Puneeth Chaganti <punchagan@fossee.in>
parents: 406
diff changeset
    78
\label{sec-1_3_2}%
bb45826efe74 Changes to basic data-types.
Puneeth Chaganti <punchagan@fossee.in>
parents: 406
diff changeset
    79
\item tuple\\
bb45826efe74 Changes to basic data-types.
Puneeth Chaganti <punchagan@fossee.in>
parents: 406
diff changeset
    80
\label{sec-1_3_3}%
bb45826efe74 Changes to basic data-types.
Puneeth Chaganti <punchagan@fossee.in>
parents: 406
diff changeset
    81
\end{itemize} % ends low level
320
223044cf254f Adding new format st-scripts with questions etc for basic-data-type and
amit
parents:
diff changeset
    82
\end{itemize} % ends low level
223044cf254f Adding new format st-scripts with questions etc for basic-data-type and
amit
parents:
diff changeset
    83
\end{frame}
223044cf254f Adding new format st-scripts with questions etc for basic-data-type and
amit
parents:
diff changeset
    84
\begin{frame}
223044cf254f Adding new format st-scripts with questions etc for basic-data-type and
amit
parents:
diff changeset
    85
\frametitle{Numbers}
223044cf254f Adding new format st-scripts with questions etc for basic-data-type and
amit
parents:
diff changeset
    86
\label{sec-2}
406
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
    87
320
223044cf254f Adding new format st-scripts with questions etc for basic-data-type and
amit
parents:
diff changeset
    88
\begin{itemize}
412
bb45826efe74 Changes to basic data-types.
Puneeth Chaganti <punchagan@fossee.in>
parents: 406
diff changeset
    89
\item int
bb45826efe74 Changes to basic data-types.
Puneeth Chaganti <punchagan@fossee.in>
parents: 406
diff changeset
    90
\item float
bb45826efe74 Changes to basic data-types.
Puneeth Chaganti <punchagan@fossee.in>
parents: 406
diff changeset
    91
\item complex
406
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
    92
\end{itemize}
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
    93
\end{frame}
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
    94
\begin{frame}
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
    95
\frametitle{Question 1}
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
    96
\label{sec-3}
320
223044cf254f Adding new format st-scripts with questions etc for basic-data-type and
amit
parents:
diff changeset
    97
406
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
    98
\begin{itemize}
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
    99
\item Find the absolute value of 3+4j
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   100
\end{itemize}
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   101
\end{frame}
412
bb45826efe74 Changes to basic data-types.
Puneeth Chaganti <punchagan@fossee.in>
parents: 406
diff changeset
   102
\begin{frame}[fragile]
406
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   103
\frametitle{Solution 1}
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   104
\label{sec-4}
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   105
418
8a42b4203f6d "Merging heads"
Amit Sethi
parents: 412
diff changeset
   106
\begin{verbatim}
412
bb45826efe74 Changes to basic data-types.
Puneeth Chaganti <punchagan@fossee.in>
parents: 406
diff changeset
   107
abs(3+4j)
418
8a42b4203f6d "Merging heads"
Amit Sethi
parents: 412
diff changeset
   108
\end{verbatim}
406
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   109
\end{frame}
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   110
\begin{frame}
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   111
\frametitle{Question 2}
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   112
\label{sec-5}
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   113
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   114
\begin{itemize}
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   115
\item What is the datatype of number 999999999999999999? Is it
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   116
\end{itemize}
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   117
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   118
not int?
320
223044cf254f Adding new format st-scripts with questions etc for basic-data-type and
amit
parents:
diff changeset
   119
\end{frame}
223044cf254f Adding new format st-scripts with questions etc for basic-data-type and
amit
parents:
diff changeset
   120
\begin{frame}
406
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   121
\frametitle{Solution 2}
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   122
\label{sec-6}
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   123
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   124
\begin{itemize}
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   125
\item Long
412
bb45826efe74 Changes to basic data-types.
Puneeth Chaganti <punchagan@fossee.in>
parents: 406
diff changeset
   126
\item Large integers numbers are internally stored in python as Long
bb45826efe74 Changes to basic data-types.
Puneeth Chaganti <punchagan@fossee.in>
parents: 406
diff changeset
   127
    datatype.
406
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   128
\end{itemize}
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   129
\end{frame}
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   130
\begin{frame}[fragile]
320
223044cf254f Adding new format st-scripts with questions etc for basic-data-type and
amit
parents:
diff changeset
   131
\frametitle{Boolean}
406
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   132
\label{sec-7}
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   133
418
8a42b4203f6d "Merging heads"
Amit Sethi
parents: 412
diff changeset
   134
\begin{verbatim}
406
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   135
In []: t=True
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   136
In []: f=False
418
8a42b4203f6d "Merging heads"
Amit Sethi
parents: 412
diff changeset
   137
\end{verbatim}
406
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   138
\end{frame}
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   139
\begin{frame}
412
bb45826efe74 Changes to basic data-types.
Puneeth Chaganti <punchagan@fossee.in>
parents: 406
diff changeset
   140
\frametitle{Question 3}
406
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   141
\label{sec-8}
320
223044cf254f Adding new format st-scripts with questions etc for basic-data-type and
amit
parents:
diff changeset
   142
406
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   143
\begin{itemize}
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   144
\item Using python find sqaure root of 3?
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   145
\end{itemize}
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   146
\end{frame}
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   147
\begin{frame}
412
bb45826efe74 Changes to basic data-types.
Puneeth Chaganti <punchagan@fossee.in>
parents: 406
diff changeset
   148
\frametitle{Solution 3}
406
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   149
\label{sec-9}
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   150
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   151
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   152
\begin{itemize}
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   153
\item 3**0.5
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   154
\end{itemize}
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   155
\end{frame}
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   156
\begin{frame}
412
bb45826efe74 Changes to basic data-types.
Puneeth Chaganti <punchagan@fossee.in>
parents: 406
diff changeset
   157
\frametitle{Question 4}
406
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   158
\label{sec-10}
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   159
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   160
\begin{itemize}
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   161
\item Is 3**1/2 and 3**0.5 same
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   162
\end{itemize}
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   163
\end{frame}
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   164
\begin{frame}
412
bb45826efe74 Changes to basic data-types.
Puneeth Chaganti <punchagan@fossee.in>
parents: 406
diff changeset
   165
\frametitle{Solution 4}
406
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   166
\label{sec-11}
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   167
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   168
\begin{itemize}
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   169
\item No,One gives an int answer and the other float
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   170
\end{itemize}
320
223044cf254f Adding new format st-scripts with questions etc for basic-data-type and
amit
parents:
diff changeset
   171
\end{frame}
223044cf254f Adding new format st-scripts with questions etc for basic-data-type and
amit
parents:
diff changeset
   172
\begin{frame}
223044cf254f Adding new format st-scripts with questions etc for basic-data-type and
amit
parents:
diff changeset
   173
\frametitle{Sequence Data types}
406
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   174
\label{sec-12}
320
223044cf254f Adding new format st-scripts with questions etc for basic-data-type and
amit
parents:
diff changeset
   175
\begin{itemize}
223044cf254f Adding new format st-scripts with questions etc for basic-data-type and
amit
parents:
diff changeset
   176
406
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   177
\item Properties
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   178
\label{sec-12_1}%
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   179
\begin{itemize}
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   180
\item Data in Sequence
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   181
\item Accessed using Index
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   182
\end{itemize}
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   183
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   184
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   185
\item Type
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   186
\label{sec-12_2}%
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   187
\begin{itemize}
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   188
\item list
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   189
\item String
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   190
\item Tuple
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   191
\end{itemize}
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   192
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   193
320
223044cf254f Adding new format st-scripts with questions etc for basic-data-type and
amit
parents:
diff changeset
   194
\end{itemize} % ends low level
406
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   195
\end{frame}
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   196
\begin{frame}[fragile]
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   197
\frametitle{All are Strings}
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   198
\label{sec-13}
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   199
418
8a42b4203f6d "Merging heads"
Amit Sethi
parents: 412
diff changeset
   200
\begin{verbatim}
412
bb45826efe74 Changes to basic data-types.
Puneeth Chaganti <punchagan@fossee.in>
parents: 406
diff changeset
   201
k = 'Single quote'
bb45826efe74 Changes to basic data-types.
Puneeth Chaganti <punchagan@fossee.in>
parents: 406
diff changeset
   202
l = "Double quote contain's single quote"
bb45826efe74 Changes to basic data-types.
Puneeth Chaganti <punchagan@fossee.in>
parents: 406
diff changeset
   203
m = '''"Contain's both"'''
418
8a42b4203f6d "Merging heads"
Amit Sethi
parents: 412
diff changeset
   204
\end{verbatim}
406
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   205
\end{frame}
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   206
\begin{frame}[fragile]
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   207
\frametitle{Immutabilty Error}
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   208
\label{sec-14}
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   209
418
8a42b4203f6d "Merging heads"
Amit Sethi
parents: 412
diff changeset
   210
\begin{verbatim}
406
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   211
In []: greeting_string[1]='k'
412
bb45826efe74 Changes to basic data-types.
Puneeth Chaganti <punchagan@fossee.in>
parents: 406
diff changeset
   212
-------------------------------------------------------
bb45826efe74 Changes to basic data-types.
Puneeth Chaganti <punchagan@fossee.in>
parents: 406
diff changeset
   213
TypeError           Traceback (most recent call last)
406
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   214
412
bb45826efe74 Changes to basic data-types.
Puneeth Chaganti <punchagan@fossee.in>
parents: 406
diff changeset
   215
/home/fossee/<ipython console> in <module>()
406
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   216
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   217
TypeError: 'str' object does not support item assignment
418
8a42b4203f6d "Merging heads"
Amit Sethi
parents: 412
diff changeset
   218
\end{verbatim}
320
223044cf254f Adding new format st-scripts with questions etc for basic-data-type and
amit
parents:
diff changeset
   219
\end{frame}
223044cf254f Adding new format st-scripts with questions etc for basic-data-type and
amit
parents:
diff changeset
   220
\begin{frame}
412
bb45826efe74 Changes to basic data-types.
Puneeth Chaganti <punchagan@fossee.in>
parents: 406
diff changeset
   221
\frametitle{Question 5}
406
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   222
\label{sec-15}
320
223044cf254f Adding new format st-scripts with questions etc for basic-data-type and
amit
parents:
diff changeset
   223
412
bb45826efe74 Changes to basic data-types.
Puneeth Chaganti <punchagan@fossee.in>
parents: 406
diff changeset
   224
  Check if 3 is an element of the list [1,7,5,3,4]. In case it is
bb45826efe74 Changes to basic data-types.
Puneeth Chaganti <punchagan@fossee.in>
parents: 406
diff changeset
   225
change it to 21.
320
223044cf254f Adding new format st-scripts with questions etc for basic-data-type and
amit
parents:
diff changeset
   226
\end{frame}
406
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   227
\begin{frame}[fragile]
412
bb45826efe74 Changes to basic data-types.
Puneeth Chaganti <punchagan@fossee.in>
parents: 406
diff changeset
   228
\frametitle{Solution 5}
406
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   229
\label{sec-16}
320
223044cf254f Adding new format st-scripts with questions etc for basic-data-type and
amit
parents:
diff changeset
   230
418
8a42b4203f6d "Merging heads"
Amit Sethi
parents: 412
diff changeset
   231
\begin{verbatim}
406
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   232
l=[1,7,5,3,4]
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   233
3 in l
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   234
l[3]=21
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   235
l
418
8a42b4203f6d "Merging heads"
Amit Sethi
parents: 412
diff changeset
   236
\end{verbatim}
320
223044cf254f Adding new format st-scripts with questions etc for basic-data-type and
amit
parents:
diff changeset
   237
\end{frame}
223044cf254f Adding new format st-scripts with questions etc for basic-data-type and
amit
parents:
diff changeset
   238
\begin{frame}
412
bb45826efe74 Changes to basic data-types.
Puneeth Chaganti <punchagan@fossee.in>
parents: 406
diff changeset
   239
\frametitle{Question 6}
406
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   240
\label{sec-17}
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   241
412
bb45826efe74 Changes to basic data-types.
Puneeth Chaganti <punchagan@fossee.in>
parents: 406
diff changeset
   242
  Convert the string \~{}''Elizabeth is queen of england''\~{} to \~{}''Elizabeth is
bb45826efe74 Changes to basic data-types.
Puneeth Chaganti <punchagan@fossee.in>
parents: 406
diff changeset
   243
queen''\~{}
406
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   244
\end{frame}
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   245
\begin{frame}[fragile]
412
bb45826efe74 Changes to basic data-types.
Puneeth Chaganti <punchagan@fossee.in>
parents: 406
diff changeset
   246
\frametitle{Solution 6}
406
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   247
\label{sec-18}
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   248
418
8a42b4203f6d "Merging heads"
Amit Sethi
parents: 412
diff changeset
   249
\begin{verbatim}
412
bb45826efe74 Changes to basic data-types.
Puneeth Chaganti <punchagan@fossee.in>
parents: 406
diff changeset
   250
s = "Elizabeth is queen of england"                                                                                                                 
bb45826efe74 Changes to basic data-types.
Puneeth Chaganti <punchagan@fossee.in>
parents: 406
diff changeset
   251
stemp = s.split()                                                                                                                                   
406
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   252
' '.join(stemp[:3])
418
8a42b4203f6d "Merging heads"
Amit Sethi
parents: 412
diff changeset
   253
\end{verbatim}
406
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   254
\end{frame}
412
bb45826efe74 Changes to basic data-types.
Puneeth Chaganti <punchagan@fossee.in>
parents: 406
diff changeset
   255
\begin{frame}
406
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   256
\frametitle{Summary}
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   257
\label{sec-19}
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   258
412
bb45826efe74 Changes to basic data-types.
Puneeth Chaganti <punchagan@fossee.in>
parents: 406
diff changeset
   259
\begin{itemize}
bb45826efe74 Changes to basic data-types.
Puneeth Chaganti <punchagan@fossee.in>
parents: 406
diff changeset
   260
\item Number Datatypes -- integer,float and complex
bb45826efe74 Changes to basic data-types.
Puneeth Chaganti <punchagan@fossee.in>
parents: 406
diff changeset
   261
\item Boolean and datatype and operators
bb45826efe74 Changes to basic data-types.
Puneeth Chaganti <punchagan@fossee.in>
parents: 406
diff changeset
   262
\item Sequence data types -- List, String and Tuple
bb45826efe74 Changes to basic data-types.
Puneeth Chaganti <punchagan@fossee.in>
parents: 406
diff changeset
   263
\item Accesing sequence
bb45826efe74 Changes to basic data-types.
Puneeth Chaganti <punchagan@fossee.in>
parents: 406
diff changeset
   264
\item Slicing sequences
bb45826efe74 Changes to basic data-types.
Puneeth Chaganti <punchagan@fossee.in>
parents: 406
diff changeset
   265
\item Finding length, sorting and reversing operations on sequences
bb45826efe74 Changes to basic data-types.
Puneeth Chaganti <punchagan@fossee.in>
parents: 406
diff changeset
   266
\item Immutability
bb45826efe74 Changes to basic data-types.
Puneeth Chaganti <punchagan@fossee.in>
parents: 406
diff changeset
   267
\end{itemize}
320
223044cf254f Adding new format st-scripts with questions etc for basic-data-type and
amit
parents:
diff changeset
   268
\end{frame}
223044cf254f Adding new format st-scripts with questions etc for basic-data-type and
amit
parents:
diff changeset
   269
\begin{frame}
406
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   270
\frametitle{Thank you!}
412
bb45826efe74 Changes to basic data-types.
Puneeth Chaganti <punchagan@fossee.in>
parents: 406
diff changeset
   271
\label{sec-20}
320
223044cf254f Adding new format st-scripts with questions etc for basic-data-type and
amit
parents:
diff changeset
   272
406
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   273
  \begin{block}{}
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   274
  \begin{center}
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   275
  This spoken tutorial has been produced by the
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   276
  \textcolor{blue}{FOSSEE} team, which is funded by the 
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   277
  \end{center}
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   278
  \begin{center}
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   279
    \textcolor{blue}{National Mission on Education through \\
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   280
      Information \& Communication Technology \\ 
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   281
      MHRD, Govt. of India}.
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   282
  \end{center}  
a534e9e79599 Completed basic data type based on review and improved on slides
Amit Sethi
parents: 320
diff changeset
   283
  \end{block}
320
223044cf254f Adding new format st-scripts with questions etc for basic-data-type and
amit
parents:
diff changeset
   284
\end{frame}
223044cf254f Adding new format st-scripts with questions etc for basic-data-type and
amit
parents:
diff changeset
   285
223044cf254f Adding new format st-scripts with questions etc for basic-data-type and
amit
parents:
diff changeset
   286
\end{document}