Python Virtual Training For Arcesium - Module I - Day 1

Sep 20-24, 2021 Vikrant Patil

These notes are available online at https://notes.pipal.in/2021/arcesium_finop_batch2/

© Pipal Academy LLP

Day 1 | Day 2 | Day 3 | Day 4 | Day 5

We will be using jupyter hub from https://lab2.pipal.in for this training.

login to hub and create a notebook with name module1-day1

esc + m -> will convert code cell to markdown cell

esc + y -> code cell

shift + enter -> execute the cell contets

text data

operators?

+,-,*,%,/,//,** these are different arithmatic operators and they have some priority by they will be executed in a statement

operator   priority
========  ==========
**          1
* / // %    2
+ -         3

problems

Variables and literals

x here is called as variable

Here are some rules to name a variable

Variables examples

More with text

   p  y  t  h  o  n
-> 0  1  2  3  4  5   
  -6 -5 -4 -3 -2 -1 <---

Collections

Program Files -> program files is not same! variable and function names are case sensitive

tuples

difference between tuple and lists is that tuples, once created can not be modified!

Dictionary

are collections in which data is stored by name and not by index

Boolean

Functions

We have learnt to make staments, some complicated types ..lets look at slightly higher abstraction im which we try to bunch together multiple statemnts and give it a name. Using this name we can recompute all the statements those are stored inside it.

type conversion

"5" - > 5

78 -> '78'

len -> length of a collection
input -> it takes inpur from user as text
print -> it prints to standard output
int -> it converts str/anything to int
str -> converts floats, integers or anything else to string
float -> it converts str/int/or anything else to float

problems

List slicing

list[start:end:step]