Python

A/L - ICT
2017 Batch
AM. Jahan
1) gpd;tUk; tplaq;fis tpsf;Ff.

Kyf; fl;lis njhFjp (Source Code)

.......................................................................................................................................................

.......................................................................................................................................................

.......................................................................................................................................................

.......................................................................................................................................................

cW fl;lis njhFjp
.......................................................................................................................................................

.......................................................................................................................................................

.......................................................................................................................................................

.......................................................................................................................................................

,izg;ghd;fs;
.......................................................................................................................................................

.......................................................................................................................................................

.......................................................................................................................................................

.......................................................................................................................................................

Nkyjpf NjlYf;F

Binary Code and Byte Code. Assemblers, Executable Code, IDE

A.M. Jahan 1 Hello: 0773536566

............................. gupzhk tsu........................................................................................................................................................................ ....................................................................................................................................................................................................................................................................................................................... ................................. 4th GL .................................................................................................................................................................................................................... 2) fzzp epfo............................................................................................................................................................M.......................................................................................................................................................................................................................... .............................................................................................................................................................................................................................................................................................................................................r...................................................... Jahan 2 Hello: 0773536566 .................................................................................. ..................... ............................................. 3rd GL .............................................. ...................................................................... 2nd GL .......rp 1st GL ........................................................................................................................................................................................................ ..........................................................................................................r....................................................rp epuypd....................................................... ....................................................... ....... ........................................................................... ................................................................................................................. ..................................................... 5th GL ....................................................................................... ................................................................................... A....................................................................................................................................................................................................... ..................................................................................... .........................................................................

.................................................................................................................................................................................................................................................................................................... 18............................................................................................................................................................................................... Print” welcome to python” ..... 18/7 :..................................................... x=raw_input (“enter your name”) :.......................................................................................................................................................................................................................................0//2 :................................................ C = “hello” D = “2014” C+D .....................................M.... 5**3 :............ math floor (18.............................. python g............................ Print ‘hei’............... Num=18 ..........................................................................................................................................................................................................................................................................................................sqrt (81) :................................................... x(81) :.......................... pow(5>4):........ 9//2 :.................................................................................tUk.......................................................................................0/7:............................................................................................................................. Num+16 .. abs(-8) :.......................................................................... x=math............................................................................................................................................................................................................................................................................ math..............................................................................................sqrt :........Nuhf....................................... 3) gpd.................................... 9... 5+2(6%4)*2-2**2+5 :.925) :...................................................................................................................................................................................id jUf.................................... output ......................................................................... A.................................. Jahan 3 Hello: 0773536566 ............. 9%4 :.................................... X=input (“Enter the number: “) Enter the Number: 20 15+x :.............................................uhkpd..................................................................................................................................................................................................

............................... X [::-2] :...................................................................................................................................................................................................................................................................................................................6................................... X [:]:.......................3......................................... :............................................................................................................................................................................................................................................................................................gb :..... 4) LIST X=[0....4................................................................... X [8:4:-2] :............................7............................................gb :...................................................................................................M..............................................................1.......................................................-2] :........................................................... Jahan 4 Hello: 0773536566 ..... X [8:1:-2] :................................................................................................................................................0........ vg........... X [-5]:.... Count Vd..................................................................................... X [4:15]:.........................................................................5. X [1:8:2] :.. X [1:8]:........................................................................................................................................................................................................................................................................................2.............................................9] X [4:8]:................................................. 5) Append Vd....................................... X [::2] :................................................... X [:-7]:............. :................................................................................ A.... vg.................................................................................................................................. X [10.............................................................................8...........................................................................

...................................................................... vg......................................................items(): Len(students): Student[“job”] =”engineer” A....................................... :......... vg......... :.................................................................................................................gb :..................................................................................................................................................................................................................................................gb :..................................... Extend Vd...................................................................................... 6) Dictionary Students = {“name”: john” “job”: “manager” “age”: “42” “status”: single”} Students {3{ Students.......gb :.... :......................................................gb :................. vg....................................................... Jahan 5 Hello: 0773536566 .................value(): Students................................................................... Pop Vd.......keys (): Students.............................................................................................................. vg................................................................... :.. Index Vd... Insert Vd...............................................................M..................................................................

M.A. Jahan 6 Hello: 0773536566 .