introduction to python - ilmoirfan...introduction to python lecture 01 installation of anaconda and...

90
Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

Upload: others

Post on 16-Oct-2020

25 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

Introduction to Python

LECTURE 01

Installation of Anaconda and Jupyter

Notebook on Windows

Authors:

Ms. Samavi Salman

Dr. Rao Muhammad Adeel Nawab

Page 2: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

ممي

ح الر

ن

مح اهلل الر م س

ب

Human Engineering

م حیحصت

ی

ي

ن

ن

راممےنمهملسمہیلعماہللمیلصمدمحممرضحت

ن

یي مف

عامال بالنـیمات ا الا انمرہمج

ی

ےہمرپمںوتینمدارهدمارماکماامعك

م رک یھب آپ وت ےہ ایک اکل وکیئ ےن یسک ںیم داین ارگ •

ی

ںیہ کس

م یک لمع ےس دك ںیم •

ی

ي

ن

م ن

ی

ہک وہں رکی

رانھک وخش اهر رانہ وخش ےہ دصقم اک زدنیگ ریمی •

م وک اہلل دصقم اک زدنیگ ریمی •

ن

ےہ ی ی

اابتع اکلم یک هملس ہیلع اہلل یلص آپ اهر قشع اکلم ےس هملس ہیلع اہلل یلص دمحم رضحت دصقم اک زدنیگ ریمی •

ےہ

م رپ ربمن ےلہپ ںیم داین وپری ںیم ےبعش اےنپ دصقم اک زدنیگ ریمی •

ن

ےہ آی

دا ولخمق دصقم اک زدنیگ ریمی •

ن

م ولث ےب یک خ

ی

دم

ن

ےہ خ

Page 3: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

دصقمماکمزدنیگ

ری •م م وک اہلل ۔ دصقم اک زدنیگ ہ

ن

ی ی

رنی رصتخم اک ی ےن وک اہلل •

ی

رنی اهرزیت ت

ی

دا ولخمق – راہتس ت

ن

م ولث ےب یک خ

ی

دم

ن

خ

مماکمرفس

ی

اشمدہہمےسمنیقیمت

ممنیقیمےسماشمدہہمےنماسمےہمیي ی موکماہللمیھبمےنمصخشمسج

ی

ےہمایکمےطمرفسماکمت

ےہماجیتموہمبیصنمراضمیکمی كماہللموکماسمےہماتیلمرکمےطمرفسماکمنیقیمےسماشمدہہمصخشموج

مماکمرفسمےسیکمےطموہم؟

ی

اشمدہہمےسمنیقیمت

س .1رماکمراےتسما

ن

رمهایلمآےنمںیمماشمدہہماسمفم مااکنرماک(مملکش)ممولخمقمہ

ی

اجےئمالچمرکی

س .2سم(رکدار)مماحكماکمصخشما

م منیقیمےسماشمدہہمصخشمہیمہکماگمدےموگایہمیکمیس تما

ی

ر اک رفس ےک ت

ن

ےہماسمف

س .3 رمیہ (رکدار)مماحكماکمصخشما

ی

ےہمخیی

رامیہمرضحت رماالسللمہیلعماتسمرامےتمااکنرمماک(مملکش)ممولخمقمہ

ن

ممنیقیمےسماشمدہہ)ممےئگمی موکماہللماهرمےئگمےلچمف

ی

مرفسماکمت

(ایگموہمےط

رآم

ی

رامےتمی كماہللمںیممف

ن

ںیہمف

Page 4: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

م

ی

يابمرہک آی

ہ كال اذ و لبی ناما ازر اتتخذ اب رہی مک ف ضلل الہۃ ان ی اص ارىک و كو

بی م

اب رہ ی ی نر کذلک ت ی موت ملکو ض و الس ر ن ی ل و ال كن من کو ال مو ی

ا ہی ػل جن فلم کبا را ل ی ال ای رب ہذا كال کو فل احب لی كال افل فلم ال ی

ا ای رب ہذا كال بزؿا ال لمر را فلم م لئ كال افل فلم ل نن رب ہ دن ی لکو

م من ال لو ال الض ی

ا س را فلم م ای اک ب ہذای رب ہذا كال ۃ بزؾ الش م ی كال افلت فلم ان لو

ا ء ی بر م ن م کو تش

ہ ت ان ہ وج ی وج موت فطر ی لل ض و الس ر ک من ان مای و فای حن ال ال مش ی

ہ و مہ حا ج ن كال كو و ا ج ف ات ن ما اخاف لی و ہدىن كد و الل کو بہ ی تش

ی ان ال ن افل ػل ما ء ش ک رب وسع ئای ش رب شا ء ی تتذکرو

ک ت مای اخاف ف ی ک و ن ل و اش افو ک ت انک ت اش ل ی لم ما بلل ک ی ػل بہ ن

ل ی ال فر ی فا سل طنا ن احق ی م ن کن ت ان بل لمو تؼ

ا ن ی ال لم و امنو ای ن لہم اول ئک بظل ماهہم ی ا ل بسو ی م ن ہم و ال ہ تدو م

رہمج

ی

ت

مماس)مماهر

یی

سم(ممونسمذرکماکمهقس

رامیہمج موکموتبںمآپمایکممم:مہکماھتماہکمےسمآزرمیس پماےنپمےنماتس

دا

ن

۔ ںیہمالتبممںیممرمگایہمیلھکموقلمیکمآپماهرمآپمہکموہںمراہمھکیدمںیمم؟ںیہمےھٹیبمانبےئمخ

رامیہممہمرطحمایسماهر ماھتمہیمدصقمماهرم،مےھتمرکاےتماظنرہماکمتنطلسمیکمزنیمماهرمآامسونںموکماتس

لممںیممهاولںمرےنھکمنیقیملمکممهہمہک

وہںمش

سممانچہچنس

مامےنماوہنںموتماھچیئمراتمرپماممج مےہمربماریممہی :مےگلمےنہک۔ اھکیدماتسرامتي

سممرھپس

ممںیہنمدنسپموکمهاولںمڈهےنبمںیمم:ماہکمےنماوہنںموتمایگمڈهبمهہمج

ی

۔ رکی

سممرھپس

سممنکیلم۔ ےہمربماریممہیم:مہکماہکموتماھکیدمےتکمچموکماچدنمےنماوہنںمجس

مایگمڈهبمیھبمهہمج

مدہامےھجممربماریممارگم:مےگلمےنہکموت

ی

ي لممںیممولوگںمرمگاہمانیقیمںیمموتماتیدمہنمی

۔ وہاجؤںمش

سممرھپس

رامدہیي مزمہی۔ ےہمربماریممہیم:ماہکموتماھکیدمےتکمچموکموسرجمےنماوہنںمج

سممرھپم۔ ےہمتسس

مهہمج

Page 5: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

دایئمیکماہللممتموکمهںزیچمنجمنج!مموقلمیریمماےم:ماہکمےنماوہنںموتموہامرغهب

ن

مرشمںیممخ متي

رار

ی

وہںمارزیبمےسمسسمماممںیمم،موہمےتیدمف

ماهرمآامسونںمےنمسجمےہمرکایلمرطفمیکمذاتماسمرخماانپمرکموہموسکیمرطحمیوپرموتمےنمںیم

۔ وہںمںیہنمےسمںیممهاولںمرکےنمرشكمںیمماهرم،مےہمایکمادیپموکمزنیم

رامیہ۔ یرکدمرشهعمتجحمےسماممےنموقلمیکمام(مہکموہامہیمرھپ)ماهر مایکم:ماہک(مےسمام)مےنماتس

مدہامےھجممےنماسمہکبجموہمرکےتمتجحمںیممیس رےمےکماہللمےسمھجمممت

ی

يمنجماهرم؟مےہمیدمدےمی

مرشماسھتمےکماہللممتموکمهںزیچ ممںیہنمےسماممںیمم،موہمامےتنمتي

ی

ماصقنمموکیئمےھجممهہمہک)ممڈری

مماصقنم)ممھچک(ممےھجم)ممرپهرداگرماریممہکمہیماال(ممیگمںیدماچنہپ

ن

رممهہموت)مماچےہ(مماچنہپیممںیمماحكمہ

رممملعماکمرپهرداگرمےریم(مماگمےچنہپممںیہنمتحیصنموکیئمیھبمرھپممتمایک۔ ےہموہےئمےیکمااحہطماکمزیچمہ

امےتن؟

مرشماکماہللمےنممتموکمهںزیچمنجماهر مامممتمہکبجموہںماتکسمڈرمےسیکمےسماممںیمم،مےہمراھکمانبمتي

مرشماکماہللموکمهںزیچ زكمدلیلموکیئمرپممتمےنماسمںیممیس رےمےکمنجمڈرےتمںیہنمےسمامےننمتي

ن

می

رممدهممہمہکماتبؤموتمےہمملعموکیئمی سماہمترےمارگمابمےہ؟میکمںیہن

ن

مےبموکممےسمںیممںوقیف

؟مےہمقحتسممدہیي مزماکمرےنہموخف

میسکماسھتمےکممامیاماےنپمےنماوہنںماهرمںیہمآےئمےلممامیامولگموج(مہکمےہمہیموتمتقیقح)م

ہبئماکمملظ

محیحصموجمںیہمهیہماهرم،مےہمقحماکمایہنمسبموتمنیچماهرمانمم،میي مدمںیہنمآےنمیھبمش

۔ ںیہمےکچمچنہپمرپمراےتس

Surah Al-Anaam Ayat# 74-82

Page 6: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

مآ

ی

يابمرہکمی

ال تر الم م حا ج ی ال ہ ی ف اب رہ اتىہ ان رب م كال اذ ال مل ک الل اب رہ رب ی ال

م كال ت ی ام و اح ان كال ت ی م ی و ی فان اب رہ س ت ی الل م من بلش

ق ت ال مش ـ رب من بہا فا فبہت ال م و کفر ی ال ل الل م یہ د ی لم ال لو الظ ی

رہمج

ی

ت

مهہمہکمیھتمیدمدےمایکمتنطلسمےنماہللموکمسجمایکموغرمرپ(مماحكمےک)ممصخشماسمےنممتمایک

رامیہمںیممیس رےمےک(ممیہمهوجدمےک)ممرپهرداگرماےنپ سمماگل؟مرکےنمثحبمےسماتسس

رامیہمج ماہکمےنماتس

میھبمںیمممم:مہکماگلمےنہکمهہموتمممیھبمومتماهرمےہماتیدمیھبمزدنیگموجمےہمهہمرپهرداگرماریممہک

رامیہممم۔ وہںماتیدمومتماهرموہںماتیدمزدنیگ ماکناتلمےسمرشمقموکموسرجموتماہلل!ممااھچممم:ماہکمےنماتس

رممهہمرپماسممم۔ الؤمرکماکنكموتمےسمرغمبماےسمذراممتم،مےہ

ن

مےسیاماہللماهر۔ ایگمرہمرکموہموہبمتماکف

مدہاموکماظوملں

ی

ي ممیي مدمںیہنمی

ی

۔ رکی

Surah Al-Baqarah Ayat# 258

رامیہمرضحت احكماکماالسللمہیلعماتس

رامیہمرضحت .1 رمےسمسسمماهرمےہمراہماجماکنیھپمںیممآگموکماالسللمہیلعماتس

مہیلعمربجلیئمرضحت)مولخمقمونراینمیتس

ممےسمآپ(مماالسلل

ی

سمہکمںیہمرےہمرکمدروخاسمںیمماحكماسمےنماالسللمہیلعمآپم؟مںیدماھجبممہموکمآگما

رمےسمسسم

راممااکنرماکمولخمقمیونرمیتس

ن

رامماهر.ممیي دمف

ن

ب الل میي ف (ےہماکیفمےیلمےریممی كماہلل)م حس

رآم

ی

رامےتمی كماہللمںیممف

ن

ںیہمف

Page 7: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

مآ

ی

يابمرہکمی

ا ن ی ہی ال فاك بلو ی و زف

ن كال بدو ن ما اتؼ تن حتو

و ن ما و خللک الل ملو تؼ

ا كالوا ہ ان ی بن لہ اب نو ی ال جح ف فال لو

ن ی ہ د ی س رب ال ذاہب ان كال و

رہمج

ی

ت

آےئموہےئمدهڑےمی سمےکماممولگمےکموقلمیکماممرپماس

رامیہ راےتشموخدمںیہنجموہموپےتجموک(مموتبں)ممامممتمایکممم:ماہکمےنماتس

ی

وہ؟مت

۔ یھبموکماسم،موہمانبےتممتمھچکموجماهرم،مےہمایکمادیپمیھبمںیہمتمےنماہللماحالہکن

رامیہم:ماہکمےنمولوگںمام مامےیلمےکماتس دهمکنیھپمںیممآگموہیئمدیتکہماےسماهرم،مانبؤمامعرتمتي

رامیہماهر رامےئمرامنہیئمیریممهیہم،موہںماجراہمی سمےکمربماےنپمںیمممم:ماہکمےنماتس

ن

۔ اگمف

Surah Al- Saaffaat Ayat# 94-111

م

ی

يابمرہک آی

اب رہی دا و سلما ػلی ن بر كل نا ینار کو

رہمج

ی

ت

رامیہمےنماوہنںمانچہچن) م،موہاجمیدنھٹمآگماے(مماہکمےنممہماهرم،میي مدمڈاكمںیممآگموکماتس

رامیہماهر اجمنبمالسیتممےیلمےکماتس

Surah Al-Anbiya Ayat #69

رامیہمرضحت .2 رامممکحمےنمی كماہللموکماالسللمہیلعماتس

ن

مراےتسمےکماہللموکماالسللمہیلعماامسلیعمرضحتمےٹیبماےنپمہکمیي ف

ریس ممںیم

ی

رمےنماالسللمہیلعمآپ.مم(مےہماحكملکشممیہمتہبمہی)ممںیدمرکمفمممیکماہللمںیمماحكمہ

ی

م(مممکح)مماچہ

رامموپراموک

ن

ڑپےملچمےیلمےکمرکےنمذحبموکےٹیبماےنپماهرمیي ف

رآم

ی

رامےتمی كماہللمںیممف

ن

ںیہممف

Page 8: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

م

ی

يابمرہک آی

ا بلؽ مؼہ كال یبن فلم ؼ بک فاه ظر ماذا تری كال ان ی اری ف ال منام ان ی الس اذ

تجدن ی مر س بت اف ؼل ما تو بی ن یی من الص ان شا ء الل

رہمج

ی

ت

سممرھپس

رامیہمڑلاکمهہمج ممےکمرھپےنمےنلچماسھتمےکماتسسموخابمںیم!ممےٹیب:مممماہکمےنماوہنںموتموہایگماقب

ماہکمےنمےٹیبمممےہ؟مراےئمایکمیاہمترم،ماتبؤمرکموسچمابم،موہںمراہمرکمذحبمںیہمتمہکموہںماتھکیدمںیم

ءاہللم،مےہماجراہمیي مدممکحموکمآپماکمسجمےیجیکمهیہمآپ!مماجممایس م

ن

مںیممهاولںمرکےنمربصمےھجممآپمان

ےگمی ںیئمےس

Surah Al- Saaffaat Ayat# 102

رامیہمرضحت .3 رامممکحمےنمی كماہللموکماالسللمہیلعماتس

ن

مےکمزدنیگماہجں)ممآؤموھچڑمہکمموکمیویبماهرممےٹیبماےنپمہکمیي ف

رامیہمرضحت(م.ممےھتمہنماابسبموکیئ رمےنماالسللمہیلعماتسمممیکماہللمںیمماحكمہ

ی

مرامموپراموک(مممکح)مماچہ

ن

ماهرمیي ف

آےئمہکم وھچڑموکمیویبماهرمےٹیبماےنپ

رآم

ی

رامےتمی كماہللمںیممف

ن

ںیہمف

م

ی

يابمرہک آی

نا لیـل ر م رب ع غن د بی تک ال محر ذی زر ت بواد ؿی کن ت من ذری نای ان ی اس ی موا ب

کرو ن الثمرت لؼلہم یش ہم وار زك ہم م ن الناس تہ وی ی الی ؼل اف ئدۃ م لوۃ فاج ن الص

رہمج

ی

ت

رےماےمممےکمآپموکماهالدمھچکماینپمےنمںیم!ممرپهرداگرمہ

ی

مامی سمےکمرھگمهاےلمرحم میسیامتي

رے۔ وہیتمںیہنمیتیھکموکیئمںیممسجمےہمیي ماسبمالمںیممیهادم(ممایکمےیلماسمےنمںیممہی!م)ممرپهرداگرمہ

ہک

ی

دام،مںیرکماقمئمامنزمہیمی

ن

موکمامماهرم،مےیجیرکدمادیپمششکمےیلمےکماممںیممدولںمےکمولوگںمل

رامماطعمرزقماکمولھپں

ن

ہکم،مےیف

ی

ںینبمذگارمرکشمهہمی

Surah Al- Abraham Ayat# 37

Page 9: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

رامیہمرضحت رماهر(مممرکدار)مماحكماکماالسللمہیلعماتس

ی

خیی

رامیہمرضحت ممیوپر(ممرکدار)مماحكماکمماالسللمہیلعماتس

ی

مایق)ممےیلمےکمہملسمممام

ی

ممم

ی

ےہمومنہن(ممت

رآم

ی

رامےتمی كماہللمںیممف

ن

ںیہمف

مآ

ی

يابمرہکمی

ل ن اس م سن دی نا م فا و و من اح حنی ۃ اب رہی بع مل سن و ات و ہو مح ہہ لل وج

خلی ل اب رہی ذ الل ات

رہمج

ی

ت

مآےگمےکماہللموک(ممهوجدماسرےمتیمس)ممرہچےماےنپمےنمسجموہاگمنیدماکمسکمرتہبمےسماسماهر

رامیہمےچسمےھدیسمےنمسجماهرم،موہمیھبموخرگماکمیکینمهہمہکبجم،موہمیي مدماکھج میکمیهریپمیکمنیدمےکماتس

رامیہمےنماہلل(ممہکمےہمیہمولعملمہی)مماهر۔ وہ مماخصماانپموکماتس

ی

۔ اھتمایلمانبمدهس

Surah un-Nissa Ayat# 125

مآ

ی

يابمرہکمی

وۃ كد کهت لک نۃ اس ی ن مؼہ حس و ال ف ی اب رہی

رہمج

ی

ت

رامیہمےیلماہمترے مےہمومنہنمنیرتہبمںیممںاسویھتمےکمامماهرماتس

Surah Al- Mumtahina Ayat# 4

مآ

ی

يابمرہکمی

وۃ كد کهت لک نۃ اس ی ن مؼہ حس و ال ف ی اب رہی

رہمج

ی

ت

رامیہمےیلماہمترے ںیہموہےئمےہمومنہنمنیرتہبمںیممںاسویھتمےکمامماهرماتس

Surah Al- Mumtahina Ayat# 4

Page 10: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

را اکلم ہ

م

ی

يابمرہک آی

صدق كل ا الل بؼو فات اب رہ ۃ مل ک من کن ما و فای حن ی ال مش ی

رہمج

ی

ت

دام،مےہماہکمچسمےنماہللمہکمےیہکمآپ

ن

رامیہممتمل مےھدیسمرطحمیوپرموجمرکهماابتعماکمنیدمےکماتس

دایئمیکماہللموجمےھتمںیہنمےسمںیممولوگںمامماهرم،مےھتمرپمراےتس

ن

مرشموکمیسکمںیممخ ںیہمامےتنمتي

Surah Al- Imran Ayat# 95

ماماےنپمےنمی كماہلل ےیدمانبمزنیمماسوتںماهرمآامسمماسوتںمےسممکحمتي

مماس

یی

ےہمریہمرکماضعئموکموقتماینپمںیممااھٹےنمافدئہمےسمزنیمماهرمآامسمماسوتںمےہمداینموجمهق

وہیئمیگلمںیہنمںیممااھٹےنمافدئہمےسمذاتمی كماسمےہمیي مانبمےنمی كماہللمسج

ممافدئہمےسمذاتمیکمی كماہلل

ن

ےہمایکمااھٹی

ممسج

یی

مموپرامےسمےقیرطمےکمهملسمہیلعماہللمیلصمدمحممرضحتمےنممہموکماسمےہماچاتہموجمی كماہللمهہمهق

ن

ےہمرکی

یگمڑپےمرکینمرپمیس تماسمتنحممےلہپمےسمسسم

ےہماہلل

ےہمھچکمسسممںیمماہھتمےکمایسماهر

( ممںیہنمےسمیسک

ی

ممےسماہللموہی

ی

ےہموہی )

ماماےس ماماهرمانہکمےسمزیس ممےہمتي ممںیممدكمےہمتي

ن

ری

ی

ای

رامےہمہیماکلمہ

رآممرممہ

مرممیڑھگمہ

مممہ

یی

رمهقم ممےکمداینمیاسرمہکموہموسچمہیمیہ

ن

انبںیئمرکفماینپموکمیس تماسمان

ےہماچاتہمایکمےسممہمهہمےہماہلل

ممیکماہلل

ی

م مموپرامےسمےقیرطمابمركمےکمهملسمہیلعماہللمیلصمدمحممرضحتمےنممہموکماچہ

ن

ےہمرکی

ونںمےکمداینمیاسرماهر

ن

ممرایتمرپمرکےنموپرامےکماسموکمان

ن

ےہمرکی

Page 11: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

دہیي مزملمعممکمیس ںیت

رتک وصیف رضحت اصجسم یلع تس

رح

ونوجام ےا

ھکل ہن ہہک ہن ، ھکل ہن ہہک ہن ، ھکل ہن ہہک ہن

اکچ اج اھکل تہب اکچ اج اہک ،تہب اکچ اج اھکل تہب اکچ اج اہک ،تہب اکچ اج اھکل تہب اکچ اج اہک تہب

داھک ےک رک ، داھک ےک رک ، داھک ےک رک

ےہ اچیتہ دانھکی وک کيم ےریت وت داین

بیصنمےبمادبمےبم،مبیصنمیس ممادبمیس م

منف

ںیہمےتہکمونفمموکمام.ممںیہمآیتمےکمدبامریغبموجممولعمامتمهہ

ںیہمرکےتمتنحممرپمااسجلمونفم

سم،مےہمانبمےسمیٹمممسج ممےنما

ممم

ن

مےہماجی

مملع

ممآیتمےسمراےتسمےکمادبموجمولعمامتمهہ ي

ر

م

و لموکمام.ممہعل

ممےتہکم ي

ر

م

ہ

و لعل

ممرکےتمتنحممرپممارهاحم ي

ر

م

ہ

سم،مےہمےسمارمماعملمرهحمیگموہمںیہنمانفمیھبمیھبکمےیلما

ملع یک تقیقح

رفمتقیقحمیکمملعمامص ےہمهہماهرم،مےہمیتکسموہماحلصمےسمراےتسمتي

o مادب

ممادبماکماسمےسمدكمےلہپمےسمسسمموکمآپم،مےیلمےکمےنھکیسمھچکمےسمآدیممیھبمیسک

ن

رےمرکی

اگمت ر

o اگمےلممںیہن(ممضیفماکمااتسد)م متقیقحمیکمملعمنکیلمےگمںیلمرکماحلصموتمولعمامتمآپمےکمادبمریغب

ممیکمملعموکمصخشمسجحقيميیی

م

ی

ممی مموکماہللمهہم،مےہماجیتموہمبیصنمقت

ی

ےہماجی

Page 12: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

ںیرکمےسمدكمںیرکماکلموج

م اکل •

ن

.رکی

م اکل وخیش وخیش •

ن

.رکی

م اکل وخیش رکوخیش ےل اسھت وک اهلل •

ن

.رکی

م •

ی

يم :آی

رر كددم إیي

مبسعر

ن

نم

رر كم هإیي

ن

نيعیر

ی

یمسر

ن

ن

رہمج

ی

د دم ےس یہ ھجت اهر .ںیہ رکےت ابعدت یہ ریتی مہ اهلل یي م :ت

ںیہ امےتگن

ںیرکمراایتخمراہتسماکمیگی زیکمہشیمہمرکموہمرپهامےبمےسماتنجئ

ڑپںیھ رهزاہن داع ہی

ر مٱ :داعن

طرمٱ همددیرررلص

مرمٱ ي

رقي

ی

یمسمم ل

طرم ررمٱ ص

ر

ن

ييد

ن

ر

رم ل

ی

م

ر

م

ن

نرم أ

همريي لرع

رہمج

ی

.ایک ااعنل ےن وت رپ نج ران یک ولوگں ام داھک ران دیسیھ ںیمہ :ت

ےہماچاتہموتموجمںیہماچےتہمهہممہماچےتہمںیہنمھچکممہماہللمیي م

( رحماصجسممدبعاولاہبماحیجمرضحت )

Page 13: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

دےمرکهامےلصیفمےسماہللموجموہمیسیامداع

تـرا ل اللمهمم خرا لا واخا تـنا سباحانك ل علام لنا إلم ما علمما

كیم إنمك أنات الاعلیم الا

ري ويسرا ل اماري رحا ل صدا رب اشا

قهوا قـوال دة منا لسان يـفا للا عقا واحا

الشمیاطي هزات منا بك أعوذ رمب

يماضروان انا رب واعواذبك

Commando is a Man of Character

SLIDE Five Types of Training • Police • Elite • Rangers • Army • Commando

Page 14: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

SLIDE Main Goal of a Course - Commando Training

• Commando • Commando is a Man of Character and (s)he should Safeguard his

Character SLIDE Main Qualities of a Commando

Live a Balanced and Scheduled Life

.اہریت ںیہن یھبک تنحم •

100% Effort with Sincerity

.ںیہ اجےت لچ یھب ےکس وھکےٹ وت وہں داعںیئ •

م یک ااتسد اهر هادلنی

ی

دم

ن

ادب + خ

Respect and Serve your Parents and Teachers

SLIDE Main Qualities of a Commando Cont…

• Go to bed immediately after امنز اشعء (between 9pm – 10pm)

• Do ذرکماکماہلل on daily basis (at least 30 minutes)

• Do brisk walk / running on daily basis (at least 30 minutes)

• Drink 1-liter milk, eat at least 10 dates and take at least 10

spoons of honey on daily basis

Page 15: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

SLIDE Main Qualities of a Commando Cont…

• Commando Passes in Three Big Exams of Life:

ہسیپ •

ہدہع •

وعرت وت ےہ رمد / رمد وت ےہ وعرت •

SLIDE Summary of Qualities in a Commando

ری

ن

س اعج

(Humbleness)

Course Focus

Life = Technical Skills (15%) + Human Engineering (85%)

• To Master the Art of Living, mainly get Excellence in

two things

• Become a Balanced and Characterful Personality

• Become an Authority in Python in the Whole

World

Page 16: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

Little Efforts Daily Will Make You the Greatest

SLIDE Little Efforts Daily Will Make You the Greatest • To systematically learn and get excellence in any concept / subject

رکںی رهز اکل اک رهز •

م اک ےنیہم اك •

ن

م اھکی م یہ اےسی اتکس، اج اھکیي م ںیہن ںیم دم اتي م اکل اک ےنیہم اتي اتکس وہ ںیہن ںیم دم اتي

• Importance of Completing Tasks on Daily Basis • Main Reasons of Failure in Life

ےگ رکںی لک اکل ہی •

م ںیہن یھبک هہ ےہ اتکس وہ یھب یھبک اکل وج •

ی

وہی

م زدنیگ • ل لک ںیم زدنیگ آج ےہ هہ اهر ےہ دم اتي

ن

ےہ ںیہن زیچ وکیئ یک ی

اگ آےئ ںیہن هاسپ اب ایگ الچ ےس زدنیگ یک آپ دم وج •

ےہ وہاتکس یہ آج اکل اک آج •

م هہ ایگ رزگ وج •ن

رم اےنپ وت ےہ امج دیمام آج ، ںیہن ہتپ اک دم هاےل آےن ، ںیہن آیم داھکؤ وجہ

Programming – Summary

Program = Process (Data + Instructions)

Page 17: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

Lecture Outline

Best Teaching and Learning Methodology of the World • Using a Template-based Approach to Systematically Perform a Real-world

Task • Lecture Aim • Download Anaconda Setup for Windows • Install Anaconda on Windows • Verify Installation of Anaconda • Running Your First Program in Python • Stop Complaining! Stop Criticizing! Let’s Start Contributing • Lecture Summary

Page 18: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

Best Teaching and Learning Methodology of the World

SLIDE Best Teaching and Learning Methodology of the World

Question o What is the best Teaching and Learning Methodology of the world?

Answer o The best Teaching and Learning Methodology of the world is the

one, which

Allah (اہلل) taught us in The Holy Quran and Hazrat Muhammad

S.A.W.W. (رضحت دمحم یلص اہلل ہیلع هملس) used to teach His Students i.e.

Sahaba Karam R.A. ( مماہللمریضمرکالماحصہب

ه

ن

عي

انیعمجم )

Reason o The Teaching and Learning Methodology of Hazrat Muhammad

S.A.W.W. is the best (till the Day of Judgment) because It produced the best Human Beings of the world till the Day

of Judgement o Hazrat Muhammad S.A.W.W. said

Page 19: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

SLIDE Best Teaching Methodology and Learning Methodology of the World Cont…

Question o In what areas Sahaba Karam R.A. mainly achieved Excellence?

Answer o Sahaba Karam R.A. mainly achieved Excellence in three areas

1. Excellence in Friendship (قلعت) and Obedience (می

of Allah (ااطع

2. Excellence in Love (قشع) and Obedience (م

ی

of Hazrat (ااطع

Muhammad S.A.W.W. 3. Excellence in their Field of Work

SLIDE

ےس قلعت اہلل

رامےت رضحت

ن

ےھت ف

o مممکمےسمممکمےسممی كمماہلل

ن

م

ی

تماهرمااھٹےئمھتاہمےیلمےکمداعمآدیممہکموہمقلعتموتما

اگماجےئموہماکل

o ممےسمالفںماریممہکمںیہمےتہکممہممآج

ن

م

ی

ت لماریممہکمےہمقلعتما

ن

ماجےئموہماکلموتمایلمی

اگ

ممےسمی كماہللمہکماہکمہیمیھبکمےنممہمایک ن

م

ی

تيممداعمہکمےہمقلعتما مھتاہمیکي

؟ماگماجےئموہملاکموتمااھٹےئ

م

ن

سممانس

مایقمج

ی

ماگمرکےمانمتماهرمرسحتمیکمیس تماسموتماگمےھکیدموکمی كماہللمدممےکمم

ایلمی ممںیہنمںویکمںیممداینمےنمںیمموکماہللمرےایپماےنتمہک

هماریمرمررس

ن

ح

ہ)م

ی

بمح ےہمرعشماک (ہیلع اہلل ر

دمدمتذلماز مماریي

ی

نتفگموتاںمںیچمرسخهماس

دمدمہنمدادمماجںمدادممرس رےیي ممرخمایي

Page 20: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

o رممںیممتبحممیکماہللماهرمےہمںیہنماھکیدموکماہللمےنمولوگں مدموٹکامسر

ئ

ماجم)ممیي

سم(م.ممیدمدےس

موظفلںموخیشمیکمےنھکیدموکماہلل۔ ماگموہمایکموتمےگمںیھکیدموکماہللمج

یتکسموہمںیہنممایبمںیم

o سھمهہ.ممےہماکمسسمماہللجم

ہمےسیجم

ن

ملضفماهرمرتمحمیکماہلل.ممےہمیھبماکمرهںاگمگ

ادیممیھبمیھبکمےس

ن

ممںیہن ی

ن

اچےہموہی

o مماگمرکےمبلطموکمی كماہللمےسمدكمےچسموج.

ن

مےسملضفماےنپمی كماہللم،ماہللمان

رامںیئمبیصنمرضهرمقلعتماهرمقشعماانپماےس

ن

ےگمف

SLIDE

ےس قشع رضحت دمحم یلص اہلل ہیلع هملس

Hazrat Muhammad S.A.W.W. said

رامےتمرضحت

ن

ےھتمف

o اینمولگمےسیامیھبمآجمایقماهرمںیہموموجدمںیممد

ی

ممم

ی

ےگمرںیہمت

مامهہ ہکمےہمقشعماسیامےسممهملسمہیلعماہللمیلصموضحرموکمنج مہیلعماہللمیلصمآپمیس رمتي

ریس ممھچکمسسمماانپمےیلمےکمےنھکیدموکمهملس

ی

ںیہمرایتموکمرکےنمف

Page 21: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

ہکمےہمہیموساكمنکیل

؟مںیہنیي مموہںمےسمںیممںوبیصنموخشماممںیممایک

ماماےنپموکممهملسمہیلعماہللمیلصمدمحممرضحتمدہیي مزمےسمامؤںمیکمداینمیاسر مامتي ےہمتبحممےسمایتممتي

ںیمہمی كماہلل

o قشعماکلممےسممهملسمہیلعماہللمیلصمدمحممرضحت

o عاابتماکلممیکممهملسمہیلعماہللمیلصمآپ

o رامںیئماطعموتقیفمیکمڑپےنھمفیرشمدرهدمےسمرثکتمرپممهملسمہیلعماہللمیلصمآپماهر

ن

آنیممف

SLIDE Example 01 – Excellence Achieved by Sahaba Karam R.A.

Name of Sahabi R.A. o Hazrat Umar R.A.

Trait 01 - Excellence in Friendship (قلعت) and Obedience (می

of Allah (ااطع

o Hazrat Umar R.A. achieved Excellence in the Friendship (قلعت) and

Obedience (م

ی

of Allah and Allah made him Khalifa.tur.Rasool (ااطع

S.A.W.W ( هملسمہیلعماہللمیلصمالوسكمۃفیلخ )

o Allah ordered the world to obey the commands of Hazrat Umar R.A.

( ررممےیلمےکمہنعماعتیلماہللمریضمرمعمرضحتموکمداینمےنمی كماہلل

ر

ن

ج رمس

یي مدمرکم )

o Earth (زنیم) Obeying Hazrat Umar R.A.

رامماهرمامراموکڑامرپمزنیممےنمہنعماعتیلماہللمریضمرمعمرضحت.ممیي مآمززلہلمںیممہنیدم

ن

مریضمرمعمایکمہکمیي مف

ممںیہنمااصنفمرپممتمہنعماعتیلماہلل

ی

ایگمركمززلہل.ممےہمیتلہمںویکموت.ممرکی

o Air (وہا) Obeying Hazrat Umar R.A.

Page 22: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

رارهںمےسمہنیدممہنعماعتیلماہللمریضمہیرسمرضحت

ن

مممدهرملیممہ

ن

سمرطفمیکماہپڑ.ممںیہمرےہمڑلمج

مریضمرمعمرضحت.ممےہمںیہنمہتپماکماسموکمہنعماعتیلماہللمریضمہیرسمرضحتماهرمےہمراہمآمدنمشمےس

ےئمےتیدمہبطخمےسمہنیدممہنعماعتیلماہللمرامےتمہ

ن

میکماہپڑ(مہنعماعتیلماہللمریض)ممہیرسماےم،مںیہمف

ممہنعماعتیلماہللمریضمہیرسمرضحتملاغیپماکممہنعماعتیلماہللمریضمرمعمرضحتموہا.مموھکیدمرطف

ی

مت

مملچمہتپماکمدنمشموکمہنعماعتیلماہللمریض ہیرسمرضحتماهرمےہماچنہپیت

ی

ےہماجی

o Water (ی ین) Obeying Hazrat Umar R.A.

مملینمیي مدر

ن

رمموتماجےئمڈاالمںیممیي مدرمرکمانبمدنہلموکمڑلیکمونوجاممہک یسکماھتمہیموہشمر.ممایگموہمخ مپ

ممہنعماعتیلماہللمریضمرمعمرضحتمیس تمہی.ممےہماتلچمیي مدر

ی

میي مدرمےنمہنعماعتیلماہللمریضمآپ.ممیچنہپمت

میریتمںیمہمهرہنم،ملچموتمےہماتلچمےسممکحمےکمی كماہللمہکمےہموہفملماکمسجماھکلمطخموکملین

ڑپاملچملینمیي مدرماهرمایگمڈاالمںیمملینمیي مدرمطخماکممہنعماعتیلماہللمریضمرمعمرضحت ےہمںیہنمرضهرت

o Fire (آگ) Obeying Hazrat Omar R.A.

رممےکمہنیدم

ی

سمفيممالهامی

ک

ن

نے

ن

لیرامموکماسیھتماےنپمےنمہنعماعتیلماہللمریضمرمعمرضحت.مماگلم

ن

مالهاماهرمؤ اجم،میي مف

رےمےکماہھتماےنپماهرمےئگماسیھتمهہ.ممؤ آمرکمدنب

یي مدمرکمدنبمںیممزنیممدهیس ہموکمالهامےسماش

Trait 02 - Excellence in Love (قشع) and Obedience (م

ی

of Hazrat (ااطع

Muhammad S.A.W.W.

Page 23: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

رممںیمماکانئتموکمہنعماعتیلماہللمریضمرمعمرضحتممهملسمہیلعماہللمیلصمدمحممرضحتمدہیي مزمےسمزیچمہ

یھتمتبحممےس

ما ممےکمہنعماعتیلماہللمریضمرمعمرضحتمرمہبتمتي

ی

ممیکمابمركمرکی

ن

ي

ی

ممےنمیسک.ممیئگموہمیبملمآس

راممےنممہنعماعتیلماہللمریضمرمعمرضحت.ممںیلماکٹمڑپکامافوتلمےکمیدمیچنیق

ن

مامہکمیي مف مرمہبتمتي

ممےکممهملسمہیلعماہللمیلصموضحر

ی

ممیکمابمركمرکی

ن

ي

ی

ممهملسمہیلعماہللمیلصمآپمیھتمیئگموہمیبملمآس

مم رکےتابمرك یکاےنپ ےن

ن

ي

ی

م ممےسمیرھچموکمآس

ممیکمرکےتماےنپمیھبمںیم.مماھتماکی

ن

ي

ی

مموکمآس

۔اگماکوٹںمےسمیرھچ

رتماهرمداینمہنعماعتیلماہللمرکال ریض احصہب

ن

ممهہمہکنویکمےھتمباکایممںیممآج

ین

مموکمس

ین

مھجمسمس

ےھتمرکےتمراایتخمرک

o مممہمہکمںویکمںیہمماشیرپمںیممداینماملسممممہمآج

ین

مموکمس

ین

موھچڑ رکمھجمسمس

ممےتید ي

ر

م

ہ

Trait 03 - Excellence in their Field of Work o Hazrat Umar R.A. achieved Excellence in his Field of Work

i.e. Establishing and Running a Very Big State

س.ممےہماسكم11مرصفمالختفمدهرماکممہنعماعتیلماہللمریضمرمعمرضحتممےسمرصتخمما

یی

قرمه

ممیکماملسمونںمںیم

ی

مملیممرمعبمالھکمم22.2موکحم

ی

یئگملیھپمت

مموھتڑےماےنتمےن.ممہنعماعتیلماہللمریضمرمعمرضحت

یی

قرمماثمیلمیسیامںیممه

ی

.ممیدمرکماقمئموکحم

رماثمكمیکسج

ی

ینمخیی

ن

یتلممںیہنمںیممان

o مےکمۃزوکمولگمہکمیھتموخاحشیلماینتمںیممدهرمےکممہنعماعتیلماہللمریضمرمعمرضحت

دےتمدنممرضهرتمرکمےلمےسیپ

ن

اھتماتلممںیہنمهاالمےنیلمۃزوکموکیئمنکیلمےھتمڈوھی

o مامہکماھتمانمماانتمںیممدهرمےکمہنعماعتیلماہللمریضمرمعمرضحت مےسمرعاقموعرتمتي

اتھکیدمںیہنمیھبمرکمااھٹمرظنموکیئماےسماهرمےہمرکیتمرفسماہنتمہنیدم

Conclusion o The Teaching and Learning Methodology of Hazrat Muhammad

S.A.W.W. produced best Human Beings (i.e. Sahaba Karam R.A.) who performed miracles in every field of life

Page 24: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

o If we use the Teaching and Learning Methodology of Hazrat Muhammad S.A.W.W

We can also produce great Human Beings in very short time SLIDE Example 02 – Excellence Achieved by Sahaba Karam R.A.

Name of Sahabi R.A. o Hazrat Abdur Rehman Bin Auf R.A

Trait 01 - Excellence in Friendship (قلعت) and Obedience (می

of Allah (ااطع

o Hazrat Abdur Rehman Bin Auf R.A. is in Ashra Mubashra Sahaba R.A

(رشعہ رشبمہ احصہب ریض اہلل اعتیل ہنع)

Question

o Who is Ashra Mubashra (رشعہ رشبمہ) Sahaba Karam R.A.?

Answer

Page 25: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

مممہنعماعتیلماہللمرکال ریض احصہبم11مهہممہنعماعتیلماہللمریض رشبمہ رشعہ ي

ر

م

مےنمی كماہللموکمنجمہ

ممیہمںیممداین

ی ن

س رتمیکمج

س یھتمیدےدمن

لمرکال ےک احصہب رشبمہ رشعہ

ن

ممہیمی ي

ر

م

ہ

o Hazrat Abu Bakar Siddiq (R.A.)

ممركبمأوبمرضحت )

ی

يہنعماعتیلماہللمریضمادصلي )

o Hazrat Umar Farooq (R.A.)

( طا بمنبمرمعمرضحت

ن

جلہنعماعتیلماہللمریضما )

o Hazrat Usman Ghani (R.A.)

( ہنعماعتیلماہللمریضمافعممنبمامثعممرضحت )

o Hazrat Ali (R.A.)

( مماوبمنبمعيممرضحت ہنعماعتیلماہللمریضماطلس )

o Hazrat Talha (R.A.)

( نبمرضحت

ی

حةطل

يدداهللم سبعی

ہنعماعتیلماہللمریضم )

o Hazrat Zubair ibn-e-Awam (R.A.)

( رممرضحت يسدممنبماوعلالمنبمازلب ہنعماعتیلماہللمریضموخيي )

o Hazrat Abu Obaidaibn-al-Jarah (R.A.)

( راح ہرضحت اوبدیبعسریض اہلل اعتیل ہنع نب ج ‎)

o Hazrat Abdul Rehman Ibn-e-Auf (R.A.)

( ہنعماعتیلماہللمریضموعفمنبمالنمحمدبعمرضحت ‎)

o Hazrat Saad Ibn-e-Abi Waqas (R.A.)

( يممنبمدعسمرضحت ہنعماعتیلماہللمریضمهاقصمأبس )

o Hazrat Saeed Ibn-e-Zaid (R.A.)

دممرضحت) دممنبمسي (ہنعماعتیلماہللمریضمزیي

Trait 02 - Excellence in Love (قشع) and Obedience (م

ی

of Hazrat (ااطع

Muhammad S.A.W.W.

Page 26: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

o رم ںیم اکانئت وک ہنع اہلل اعتیل ریض نب وعف الامحم رضحت دبعم زیي دہ ےس زیچ ہ

ےس تبحم یھت رضحت دمحم یلص اہلل ہیلع هملس

o م اجترت اینپ ہنع ےن اہلل اعتیل ریض وعف رضحت دبع الامحم نبbusiness)مم)

رےقی ابمرك ےک رضحت دمحم یلص اہلل ہیلع هملس دصیف111 ي م اطمقب ےک طر ک

م

Trait 03 - Excellence in the Field of Work o Hazrat Abdur Rehman Bin Auf R.A achieved Excellence in his Field

of Work i.e. Business

o س اک ریض اہلل اعتیل ہنع نب وعفم الامحم دبع رضحتس

ربا م3م وت وہا ااقتنك ج

وھچڑںی ںارشایفم زیي دہ ےس

م

Conclusion o The Teaching and Learning Methodology of Hazrat Muhammad

S.A.W.W. produced best Human Beings (i.e. Sahaba Karam R.A.) who performed miracles in every field of life

o If we use the Teaching and Learning Methodology of Hazrat Muhammad S.A.W.W

We can also produce great Human Beings in very short time

Page 27: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

SLIDE Example – Teaching and Learning Methodology of The Holy Quran

Order of Allah

o Allah Gave Order (مکح) that Drinking of Wine (رشاب) is Haram (رحال)

Allah systematically gave this Order i.e. o A Simple to Complex (Step by Step) Approach was used

Step 1: Drinking of Wine is Bad

Page 28: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

Step 2: You should not Drink Wine at the Time of Namaz

Step 3: Drinking of Wine is Haram

SLIDE Example – Teaching and Learning Methodology of The Holy Quran Cont…

Outcome of Template-based Approach used in The Holy Quran for Teaching and Learning

o When Sahaba Karam (R.A.) heard the Third Order of Allah about Wine (i.e. Drinking of Wine Is Haram)

Page 29: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

All the Sahaba Karam (R.A.) immediately obeyed the Order of Allah and stopped drinking Wine

Conclusion o Following The Holy Quran, if we use a Template-based Approach to

systematically learn / perform any Real-world Task as Allah has taught us

We can make Impossible Possible Insha Allah 😊 SLIDE Template-based Approach Learned from the Holy Quran

From the example given (from The Holy Quran) in previous Slides, we may extract the following

o Teaching and Learning Methodology

To systematically learn / perform any Real-world Task o Use a Template-based Approach

To Make a Template, use the o Divide and Conquer Approach

How Divide and Conquer Approach Works? o Systematically break a Real-world Task into

Steps / Sub-steps / Sub-sub-steps o For each Step / Sub-step / Sub-sub-step, see the

Order and Flow i.e.

Use a Simple to Complex Approach Connectivity and Independence i.e.

1. Each Step / Sub-step / Sub-sub-step must be connected to the previous and next Step / Sub-step / Sub-sub-step

2. Each Step / Sub-step / Sub-sub-step must be independent of every other Step / Sub-step / Sub-sub-step

SLIDE Note

Insha Allah, in the next Slides, I will plan, design and write my Lecture using the

o Template-based Approach which we learned from The Holy Quran

Page 30: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

Its Story Time

Page 31: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab
Page 32: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

Using a Template-based Approach to Systematically Perform a Real-world Task

SLIDE Steps – Using a Template-based Approach to Systematically Perform a Real-world Task

To systematically perform any Real-world Task, follow the following steps o Step 1: Completely and correctly understand the Real-world Task

Write down two main things

Given

Task o Step 2: Understand the Input and Output of the Real-world Task

Write down two main things

Input

Output o Step 3: Plan and Design a Template-based Approach to perform the

Real-world Task Step 3.1: Use Divide and Conquer Approach to break the

Real-world Task into

Steps / Sub-steps / Sub-sub-steps Step 3.2: For each Steps / Sub-steps / Sub-sub-steps

Check the Order and Flow between Steps / Sub-steps / Sub-sub-steps

Check the Connectivity and Independence between Steps / Sub-steps / Sub-sub-steps

o Step 4: Use a Five Step Process to perform the Real-world Task Step 4.1: Plan – in Mind Step 4.2: Design – on Paper Step 4.3: Execute – at Prototype level Step 4.4: Execute – at Full Scale Step 4.5: Take Feedback from Users / Audience and Domain

Experts to further improve the solution of Real-world Task o Step 5: Document each and every Step, when performing a Real-

world Task

Page 33: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

SLIDE Importance of Documentation

At university, mainly three types of degree programs are offered o Undergraduate o MPhil o PhD

Lac’s see the main outcome of these degree programs o Outcome of an Undergraduate Degree Programs

Final Year Project Report

i.e. A Written Document o Outcome of a MPhil Degree Programs

MPhil Thesis

i.e. A Written Document o Outcome of a PhD Degree Programs

PhD Thesis

i.e. A Written Document

Conclusion o As can be noted from above discussion, that

A Written Document is the main outcome of all the major degree programs offered at university level

o This clearly highlights the Importance of Documentation

SLIDE Importance of Documentation Cont…

The best book of the world i.e. the Holy Quran, is also o A Written Document

Question o How to recite The Holy Quran?

Answer

o Recite with Love (قشع)

Situation 01 - Recitation of the Holy Quran

o A person is reciting Bismillah (م اہللم س

and he recites the complete (ب

Bismillah (م اہللم (آیي ت) in one go and then starts reciting other Ayats (بس

of the Holy Quran

Page 34: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

ممي

ح الر

ن

مح اهلل الر م س

ب

Situation 02 - Recitation of The Holy Quran with Love (قشع)

o A person is reciting Bismillah (م اہللم س

and he stops at the second (ب

word of Bismaillah (م اہللم (اہلل) i.e. Allah (بس

o He kisses the word Allah (اہلل) and starts crying, saying that

It is the الكل of my beloved Allah (اہلل)

o He repeats the word Allah (اہلل) again and again with Love

o After reading the complete Bismillah (م اہللم س

he asks himself a ,(ب

question

o الم؟مںیہنمہکممالمماہلل

o مموکماہللماھتمدصقمماکمالتهتماس

ن

؟مالممںیہنمہکمالمماہللمےھجممایکموتم،می ی

Conclusion o Every night When you go to bed for sleep, ask yourself a question

o اھتمیي مآمی ےنموکماہللمںیممداینماسمںیم

o الم؟مںیہنمہکمالمماہلل

o مم،ماگمامےگنمےسماہللموکماہللموج

ن

اگماجےئمی مموکماہللمهہماہللمان

o ممامےتگنموکمآپمےسمآپممہم،ماہللمیي م ي

ر

م

رامماطعمقلعت اچسماهرمقشعماانپمںیمہم،مہ

ن

آنیممف

SLIDE Example - Steps (Systematically Performing a Real-world Task)

Consider the following Real-world Task

Real-world Task o Installation of Anaconda on Windows

SLIDE Example - Steps (Systematically Performing a Real-world Task)

Step 1: Completely and correctly understand the Real-world Task o Given

Fazal of Allah (اہلل اک لضف)

Page 35: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

Dua (داع) and Tawajju (وتہج) of Akabir (رم (ااکتس

A Laptop / Personal Computer with following softwares installed on it

Windows An Operating System

A Web Browser (for e.g. Google Chrome) A Good Internet Connection

o Task Install Anaconda Programming Language on your Laptop /

Personal Computer SLIDE Example - Steps (Systematically Performing a Real-world Task) Cont…

Step 2: Understand the Input and Output of the Real-world Task o Input

Fazal of Allah (اہلل اک لضف)

Dua (داع) and Tawajju (وتہج) of Akabir (رم (ااکتس

Anaconda Setup File o Output

Anaconda is correctly installed SLIDE Example - Steps (Systematically Performing a Real-world Task) Cont…

Step 3: Plan and Design a Template-based Approach to perform the Real-world Task

o Step 3.1: Use Divide and Conquer Approach to break the Real-world Task into

Steps / Sub-steps / Sub-sub-steps

Using a Template-based Approach, I have divided the Real-world Task into four main Steps

o Step 1: Download Anaconda Setup for Windows o Step 2: Install Anaconda on Windows o Step 3: Verify Installation of Anaconda o Step 4: Running Your First Program in Python

Each main Step is further divided into Sub-steps / Sub-sub-steps o Insha Allah, I will show you the Sub-steps / Sub-sub-steps in the

next Sections of the Lectures

Page 36: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

SLIDE Example - Steps (Systematically Performing a Real-world Task) Cont…

Step 4: Use a Five Step Process to perform the Real-world Task o Step 4.1: Plan – in Mind o Step 4.2: Design – on Paper o Step 4.3: Execute – at Prototype level o Step 4.4: Execute – at Full Scale o Step 4.5: Take Feedback from Users / Audience and Domain Experts

to further improve the solution of Real-world Task

Alhumdulilah, with Fazal of Allah ( ےسملضفمےکماہلل ), I have performed the Real-

world Task (i.e. Installation of Anaconda on Windows) using the above Five Step Process

Note o I did multiple iterations of first three Steps i.e. Plan, Design and

Execute (Prototype Level) o I completed the fourth Step i.e. Execute (Full Scale) o Insha Allah, I will wait for your valuable Feedback to further

improve this Lecture SLIDE Example - Steps (Systematically Performing a Real-world Task) Cont…

Step 5: Document each and every Step, when performing a Real-world Task

Alhumdulialh, with fazal of Allah ( ےسملضفمےکماہلل ) I have documented this

Lecture and you are reading it 😊

Insha Allah, I will wait for your valuable Feedback on the quality of Documentation

Page 37: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

Its Inspirational Quotes Time

Quote No 01

مماینبدمیکمڑجمیکمتبیصم

ن

۔ےہموگتفگمیکمان

ہنعماعتیلماہللمریضمركبماوبمرضحت

Quote No 02

ریمےسمسسم

ممتس

ین

۔ےہمدغاریمےسموقلمایخی

ہنعماعتیلماہللمریضمیلعمرضحت

Quote No 03

ریمےسمسسم

ممتس

ین

۔ےہمدغاریمےسموقلمایخی

ہنعماعتیلماہللمریضمرمعمرضحت

Quote No 04

۔ےہمدہمآرالمےئلمےکماسمربقمےہماخہنمدیقمےئلمےکمسجمداین

ہنعماعتیلماہللمریضمینغمامثعممرضحت

Quote No 05

م

یی

مماکماسمهہموتمےہمتمیقمارگمیکمهق

ی

۔ےہماامعتسكمدرس

ہیلعماہللمرتمحمامقلمممیکح

Page 38: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

SLIDE

Lecture Aim

SLIDE Lecture Aim

The main aim of this Lecture is to present how to download, install and verify the installation of Anaconda on your Laptop / PC with Windows operating system

SLIDE What Will You Need?

To download, install and verify the installation of Anaconda on Windows operating system and become a balanced and characterful personality, you will need:

Purity in Intention

o Intention (می

ي

ن

to read this Lecture should be to (ن

Get Marifat (رعمتف) of Allah ( مموکماہلل

ن

ی ی )

Become a balanced and characterful personality Become an authority in the field of Computer Science in the

whole world

To serve the humanity for Raza of Allah ( راضمیکماہلل )

• A Personal Computer (PC) / Laptop • Latest version of Windows operating system must be installed on

your PC / Laptop • A Good Internet Connection

• A good internet connection is needed to download Anaconda Setup from Python Official Website

• A Web Browser • A Web Browser is needed to open the Anaconda Official Website

and download Anaconda Setup from it • TIP: Popular Web Browsers

• Google Chrome • Mozilla Firefox • Microsoft Internet Explorer

Page 39: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

SLIDE What Will You Learn?

After reading, understanding, documenting and absorbing this Lecture, Insha Allah, you will learn to:

o How to systematically perform any Real-world Task using a Template-based Approach

o How to become a balanced and characterful personality o Download Anaconda Setup from:

https://www.anaconda.com/products/individual o Install Anaconda on Laptop / PC with Window operating system o Verify the installation of Anaconda o Run your first Program in Python using Anaconda Framework

SLIDE Best Medicine of the World

The best medicine of the world is

Love and Respect the Humanity

ممیاسر

ی

ي

ن

ن

ن

ممیاسرماهرمںیرکمتبحممےسمان

ی

ي

ن

ن

ن

ںیرکمارتحالماکمان

ی

ي

ن

ن

ن

رم ےس سس م یک ان

م ےک داین یاسر ہک ےہ م ہی وخایہ ریخ یتس

ن

م یک مہشیمہ رک چب ےس دهزخ یک مہشیمہ ان

ی

ن

س ج

اجںیئ نب اجےن هاےل ںیم

رامرم ےک اهلل مملسو هيلع هللا ىلصرضحت دمحماامیم ےہ ہک ہ

ن

مایق )م دعب ےک مملسو هيلع هللا ىلص آپ ںیہ روسك اهر یبن یآج

ی

م م

ی

یبن وکیئ ( ت

ےہ میذدمار یک سسم مہ ہی دصےق ےک وبنهت متخم ےئل اس م-م اگ آے ںیہنم روسك اهر

ردار یک )اهلل اامعك کین وخد ہک رامتس

ن

ونں ےکمداین میاسر وہے رکےت (م یف

ن

)اهلل یک اامعك مکین اهر ممامیوک ا ان

ردار رامتس

ن

وہں اهر ںیدوعت د یک (م یف

ن

رامین )اهلل یک وخد گ

ن

ف

ن

ونں ےک داین میاسر وہے ےتچب ےس (م ی

ن

وہں وک ان

ن

)اهلل یک گ

رامین

ن

ف

ن

ںید دوعت یک ےنچب ےس ( ی

رآم ی ك اهلل

ی

رامےت ںیم ف

ن

ںیہ : ف

Page 40: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

مآ

ی

يابمرہکمی

ن ب منو ن غن ال من کر و تو ف و تن ہو رو ن بل مؼ مرو رجت للناس ت ۃ اخ ام و لو امن کن ت خی لل

ہم ال اہ ل ن و اک ث منو ہم من ہم ال مو ا ل ن ال کتب لکن خی فسلو

رہمج

ی

ت

ممنیرتہبمهہممت!مماملسمون

ی

م،موہمرکےتمنیقلتمیکمیکینممت۔ ےہمیئگمالیئمںیممهوجدمےیلمےکمافدئےمےکمولوگںموجموہمام

رایئ ممرتہبمںیہکمںیممقحمےکماممہیموتمآےتمےلممامیاماتکبمالہمارگ۔ وہمرےتھکممامیامرپماہللماهرموہمرهےتکمےسمتس

ی

۔ وہی

مارثکمیکماممرگمم،مںیہمومنمموتمھچکمےسمںیممام

ی

يرامممی

ن

ف

ن

۔ ےہمی

Aal-e-Imran 110

SLIDE

متبحم

تبحم انیل انب ہگج ںیم دك ےک یسک ےہ ںیہن تبحم انیل ی م وک یسک

ےہ

ا ؤ ھچک یھبک ےگ وھٹیب اخومش یھبک

ن

بگ

ن

بگ

ےگ

ےگ الھبؤ انتج ےھجم اگ آؤں دیي م اانت ںیم

سم وکیئس

سم اک اخومیش اگ ےھٹیب وپھچ ج ےس مت سس

م تہب

ن

ےگ ی ؤ ہن اھجمس رگم ےگ اچوہ اھجمسی

ںیم اگنوہں یگ آےئ ےک نب لمکم داین یھبک

رم یک داین یمک یریم یھبکم ےگ ی ؤ ںیم ےش اك ہ

ےہ تبحم یھت تبحم مت مہ رںیہ یھب رپ ںیہک

ےگ آه دیي م مت ںیمہ ےگ آںیئ دیي م مہ ںیہمت

Page 41: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

SLIDE

Download Anaconda Setup for Windows

System Settings

Developer Name Ms. Samavi Salman

Programming Language Python 3.8.3

IDE Jupyter Notebook

Browser Version Window 8.1. Pro 64-bit Operating System

Date 10-Jun-2020

SLIDE Download Anaconda for Windows

Step 1: Open your Web Browser

I am using Google Chrome Version 83.0.4103.97

Figure 1 Download Anaconda Setup for Windows

Page 42: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

SLIDE Download Anaconda Setup for Windows Cont…

Step 2: Type the following URL in the Address Bar of Web Browser and o Press Enter Key

URL: https://www.anaconda.com/products/individual

Figure 2 Download Anaconda Setup for Windows

SLIDE Download Anaconda Setup for Windows Cont…

Step 3: Scroll the Web Page o In the Your Data Toolkit section, Click on Download

Page 43: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

Figure 3 Download Anaconda Setup for Windows

SLIDE Download Anaconda Setup for Windows Cont…

Step 4: After clicking the Download button o Control automatically moves to the Anaconda Installers section on

the same Web Page

Figure 4 Download Anaconda Setup for Windows

Page 44: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

SLIDE Download Anaconda Setup for Windows Cont…

Step 5: Download the latest version of Anaconda released

In my case it is Latest Anaconda 3 Release - Anaconda 3.7 [Version released till 10-06-2020]

Figure 5 Download Anaconda Setup for Windows

SLIDE Download Anaconda Setup for Windows Cont…

I am using Window 8.1. Pro 64-bit Operating System

Page 45: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

Figure 6 Download Anaconda Setup for Windows

SLIDE Download Anaconda Setup for Windows Cont…

Step 6: Click on the File named 64-Bit Graphical Installer (466 MB) for download

Page 46: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

Figure 7 Download Anaconda Setup for Windows

SLIDE Download Anaconda Setup for Windows Cont…

Step 7: The File will start downloading

Figure 8 Download Anaconda Setup for Windows

SLIDE Horrrrrrrraaaaaaayyyyyyyyyyyy

Alhumdulilah, Anaconda Setup is downloaded successfully

Insha Allah, in the next Section, I will try to explain how to install Anaconda on Windows

Note o Always celebrate your achievements

Remember o There are no such things as

Big Achievement Small Achievement

Achievement is Achievement 😊

Page 47: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

It’s‎Poetry Time

Ghazal No 01

م

ی

مزامہنمت

ن

م

مم،مآش

ی

ممزامہنمےسمت

ن

م

آش

مایبنجمیھبمےیلماےنپممہماهر

ن

اانشمی

ممیکمرھبمراےتس

یی

نمماجممےہمتہبمیھبمرافق

ماکمسکموکممرکمچنہپمرپمزنمكمهرہن

ن

م

؟مآش

ےئگمھجبموسرجمےکماںیھٹمآدنایھںمایسیمےکماب

نمهہماہےئيمیم

مںیھتمیھبمےسموھجوکنںمےکمش

ن

اانشمی

کلتمابمنکیلمںیممیتسبمایسمزگریمدمںیت

مولگ

ن

مممہم،ماگیبہنمذفام،مهافیق-ی

ن

اانشمی

م میھبمںیممرہشهںمرھبےممہ

ن

ر

ی

رطحمسکماجےنمںیہمت

راونممولگ مدیپامںیہمےتیلمرکمںیممهتي

ن

م

؟مآش

رااههمماشكءمدانممےیلمےکممنبشمقلخ

ي

ںیممیس

رمربخمایک مدریي مرصفمےہمرکلماتس

ن

م

آش

رازمنکیلممہمےھتموخشمےنتکمہپمیس رایس دیماینپ

ن

ف

م

ی

ماانپمےہمآیي ماکنكماکمدنمشمدهس

ن

م

آش .

Page 48: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

SLIDE

Installing Anaconda on Windows

SLIDE Installing Anaconda on Windows

Step 1: Open the Folder containing Anaconda Setup for Windows

In my case, it is in Download Folder

Figure 9 Installation of Anaconda on Windows

SLIDE Installing Anaconda on Windows Cont…

Step 2: Double Click on the following File in the Folder

File Name: Anaconda3-2020.02-Windows-x86_64.exe

Page 49: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

Figure 10 Installation of Anaconda on Windows

SLIDE Installing Anaconda on Windows Cont…

Step 3: Anaconda Installer Wizard will open o Click on Next

Figure 11 Installation of Anaconda on Windows

Page 50: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

SLIDE Installing Anaconda on Windows Cont

Step 4: The License Agreement will appear o Click on I Agree

Figure 12 Installation of Anaconda on Windows

SLIDE Installing Anaconda on Windows Cont

Step 5: By Default, the Just Me (recommended) radio button is checked and use the default settings for installation

o Click on Next

Page 51: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

Figure 13 Installation of Anaconda on Windows

SLIDE Installing Anaconda on Windows Cont

Step 6: In this step, the Install Location of Anaconda is required, the default location of Anaconda is: C:/ProgramData

o You can change the Install Location of Anaconda by Clicking on Browse button and select the Folder where you want to install Anaconda

Click on Next

Page 52: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

Figure 14 Installation of Anaconda on Windows

Figure 15 Installation of Anaconda on Windows

Page 53: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

SLIDE Installing Anaconda on Windows Cont

Step 7: You have two choices here o Choice 01: If Python is not installed on your Laptop / PC

Select both Options given below

Add Anaconda to system Path Variable

Register Anaconda as System Path 3.6 o Choice 02: If Python is installed on your Laptop / PC

Select the Option given below

Register Anaconda as System Path 3.6

In my case, Python is already installed on my Laptop o I will select the following option

Register Anaconda as System Path 3.6

Click on Install

Figure 16 Installation of Anaconda on Windows (Choice 01)

Page 54: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

Figure 17 Installation of Anaconda on Windows (Choice 02)

SLIDE Installing Anaconda on Windows Cont

Step 8: The Anaconda Setup will start installing

o Don't worry it will take time in installation 😊

Page 55: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

Figure 18 Installation of Anaconda on Windows

SLIDE Installing Anaconda on Windows Cont

Step 9: After the completion of installation o Click on Next

Page 56: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

Figure 19 Installation of Anaconda on Windows

SLIDE Installing Anaconda on Windows Cont

Step 10: In the next step, it will provide the option of installing Visual Studio Code Installation

o Click on Skip to skip this Step (see Figure below)

Page 57: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

Figure 20 Installation of Anaconda on Windows

SLIDE Installing Anaconda on Windows Cont

Step 11: Uncheck both the boxes (see Figure below) o And Click on Finish to close the Anaconda Installer Wizard

Page 58: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

Figure 21 Installation of Anaconda on Windows

SLIDE Horrrrrrrraaaaaaayyyyyyyyyyyy

Alhumdulilah, Anaconda is installed successfully

Insha Allah, in the next Section, I will try to explain how to verify the installation of Anaconda

Note o Always celebrate your achievements

Remember o There are no such things as

Big Achievement Small Achievement

o Achievement is Achievement 😊

Page 59: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

It’s‎Poetry‎Time

Shair No 01

هاںمکشرممرہنمیکمر ي

ر

م

مممہماهرمہ ي

ر

م

دهوتسمہ

ممرہشماکمهافمےبماس ي

ر

م

مممہماهرمہ ي

ر

م

دهوتسمہ

ر ي

ن

اینزیمم

Page 60: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

SLIDE

Verify the Installation of Anaconda

SLIDE Verify the Installation of Anaconda

Step 1: Click on the Start button in the Task Bar

Figure 22 Verify the Installation of Anaconda

SLIDE Verify the Installation of Anaconda Cont…

Step 2: Search for Anaconda

If you are using Windows 8/8.1 Pro o Search button will appear as shown below

Figure 23 Verify the Installation of Anaconda

SLIDE Verify the Installation of Anaconda Cont…

Step 3: Click on Anaconda Prompt

Page 61: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

Figure 24 Verify the Installation of Anaconda

OR SLIDE Verify the Installation of Anaconda Cont…

Step 4: Search for Anaconda Prompt

If you are using Windows 10 o Search button will appear as shown in the Figure below

Figure 25 Verify the Installation of Anaconda

Page 62: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

SLIDE Verify the Installation of Anaconda Cont…

Step 5: Anaconda Prompt window will appear on your Computer Screen

Figure 26 Verify the Installation of Anaconda

SLIDE Verify the Installation of Anaconda Cont…

Step 6: Checking the Anaconda Version o Step 6.1: In Anaconda Prompt window, type either of the two

commands

python -v OR

python --version

o Step 6.2: Press Enter Key

This command will display the version of Python installed on your Laptop / Personal Computer

Page 63: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

Figure 27 Verify the Installation of Anaconda

SLIDE Verify the Installation of Anaconda Cont…

Step 7: Checking the Python Version o When I typed the command

python --version

o Following message is displayed on my Anaconda Prompt window

Python 3.6.5

Alhumdulilah, this verifies the installation of Python on my Laptop

Page 64: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

Figure 28 Verify the Installation of Anaconda

SLIDE Verify the Installation of Anaconda Cont…

Step 8: Checking the Anaconda Version o Step 8.1: In Anaconda Prompt window, type the following

Command

conda info

o Step 8.2: Press Enter key

This Command will display the version of Anaconda and version of Python installed on your Laptop / Personal Computer

Page 65: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

Figure 29 Verify the Installation of Anaconda

SLIDE Verify the Installation of Anaconda Cont…

Step 9: Checking the Anaconda Version o When I typed the command:

conda info

o Following message is displayed on my Anaconda Prompt window

Conda 4.5.4 Python 3.6.5

Alhumdulilah, this verifies the installation of Anaconda on my Laptop

Page 66: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

Figure 30 Verify the Installation of Anaconda

Page 67: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

It’s‎Story‎Time

Story No 01

Page 68: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab
Page 69: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab
Page 70: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

SLIDE

Creating a Project in Jupyter Notebook

SLIDE Creating a Project in Jupyter Notebook Cont…

Step 1: Open the Anaconda Prompt o Step 1.1: Type the following command in Anaconda Prompt

jupyter notebook

o Step 1.2: Press Enter key

Jupyter Notebook will open in the Web Browser

Figure 31 Creating a Project in Jupyter Notebook

Page 71: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

Figure 32 Creating a Project in Jupyter Notebook

Figure 33 Creating a Project in Jupyter Notebook

Page 72: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

SLIDE Creating a Project in Jupyter Notebook Cont…

Step 2: The GUI of Jupyter Notebook will display all Files and Folders from your Computer System

o Step 2.1: Select the Folder amongst the given Folders where you want to save Jupyter Notebook Projects

In my case, I will be storing my Jupyter Notebook Projects at Desktop o Click on Desktop

Figure 34 Creating a Project in Jupyter Notebook

SLIDE Creating a Project in Jupyter Notebook Cont…

Step 3: It will take you to the Desktop Folder

Page 73: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

Figure 35 Creating a Project in Jupyter Notebook

SLIDE Creating a Project in Jupyter Notebook Cont…

Step 4: Click on New to make a Folder inside Desktop to save Jupyter Notebook Projects

o From drop down Click on Folder

Figure 36 Creating a Project in Jupyter Notebook

Page 74: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

SLIDE Creating a Project in Jupyter Notebook Cont…

Step 5: A new folder named Untitled Folder will be added

Figure 37 Creating a Project in Jupyter Notebook

o Step 5.1: Check the Check Box Click on Rename

Figure 38 Creating a Project in Jupyter Notebook

A Dialog Box will appear on the Computer Screen

Page 75: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

Figure 39 Creating a Project in Jupyter Notebook

SLIDE Creating a Project in Jupyter Notebook Cont…

Step 6: Type the new name of the Folder

Figure 40 Creating a Project in Jupyter Notebook

In my case, Data is the Folder Name

Page 76: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

Figure 41 Creating a Project in Jupyter Notebook

SLIDE Creating a Jupyter Notebook Project

Step 7: Click on New o From the drop down, Click on Python 3

Figure 42 Creating a Project in Jupyter Notebook

Page 77: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

SLIDE Creating a Jupyter Notebook Project Cont…

Step 8: A new File will Open in a new Tab

Figure 43 Creating a Project in Jupyter Notebook

SLIDE Creating a Project in Jupyter Notebook Cont…

Step 9: Click on Untitled o A Dialog Box will appear on Computer Screen

Figure 44 Creating a Project in Jupyter Notebook

Page 78: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

Figure 45 Creating a Project in Jupyter Notebook

SLIDE Creating a Project in Jupyter Notebook Cont…

Step 10: Rename the project o I am naming it as MyFirstProgram

Figure 46 Creating a Project in Jupyter Notebook

SLIDE Creating a Project in Jupyter Notebook Cont…

Step 11: Click on Rename o The project will be renamed and saved

Page 79: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

Figure 47 Creating a Project in Jupyter Notebook

SLIDE Creating a Project in Jupyter Notebook Cont…

Alhumdulilah, a Jupyter Notebook Project is created

Insha Allah, in this Section, I will try to show, how to run your first Python Program on Jupyter Notebook

Page 80: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

It’s‎Poetry‎Time

Ghazal No 01

،مطلغمایگماھجمسمےھجمم،ماھتمہنمطلغمرحف

،مطلغمایگموبالمیھبکمطلغمایگماھکل

،مںیھتمہنمطلغمیس ںیتمریمیماھتمہنمطلغمیبمںیم

،مطلغمایگماجاچنموکمالكلمریمےم،موکمھجم

ممڑلپےماھتمکیھٹمزیمام

ی

،مےھتمدرس

،مطلغمایگموتہلمےکمےہمداتھکیموکممہیمنکیل

،مےھتمبیعمںیمموسکیٹمبیعمےھتمںیہنمںیممھجم

،مطلغمایگمرپاھکمےکموصقرمہیماھتمریما

رمالھمدعبمےکموطافم ،مرکفمےہموکمدتتس

،مطلغمایگمدریي مےکموصقرماھتماکماسلح

راد

ن

وسهاراتمےہمطلغمیي مطلغمےہماف

ی

،می

سمیي طلغمایگمڈاھہلموکمیہمومارشیما

Page 81: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

SLIDE

Running Your First Program on Jupyter Notebook

SLIDE Program Aim

The main aim of this program is to display the following message o Allah is One

SLIDE Running Your First Program on Jupyter Notebook

Note o I am using the Jupyter Notebook File (named MyFirstProgram)

which I created in the previous Section – Creating a Jupyter Notebook Project

Step 1: In Jupyter Notebook, type the following Python Statement o print(“Allah is One”)

Figure 48 Program on Jupyter Notebook

Page 82: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

SLIDE Running Your First Program on Jupyter Notebook Cont…

Step 2: Click on Run (or Press Shift + Enter from Keyboard) to execute the command

o print() statement will be executed and the following message will be displayed

Allah is One

Figure 49 Program on Jupyter Notebook

SLIDE Running Your First Program on Jupyter Notebook Cont…

Step 3: Click on Plus(+) to add a new row in Jupyter Notebook File

Page 83: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

Figure 50 Program on Jupyter Notebook

Figure 51 Program on Jupyter Notebook

SLIDE Running Your First Program on Jupyter Notebook Cont…

Step 4: In Jupyter Notebook File, type the following Python Statement o print(“Always Speak the Truth”)

Page 84: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

Figure 52 Program on Jupyter Notebook

SLIDE Running Your First Program on Jupyter Notebook Cont…

o Step 5: Click on Run (or Press Shift + Enter from Keyboard) to execute the Command

print() statement will be executed and the following message will be displayed

Always Speak the Truth

Figure 53 Program on Jupyter Notebook

Page 85: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

SLIDE Running Your First Program on Jupyter Notebook Cont…

Step 6: To exit from the Jupyter Notebook o Go to the Terminal window from where you opened Jupyter

Notebook o Press Ctrl+C key to close Jupyter Notebook

Figure 54 Program on Jupyter Notebook

SLIDE Running Your First Program on Jupyter Notebook Cont…

Step 7: When you press Ctrl+C key a message will be displayed Shutdown this notebook server

o Type y for yes and n for no SLIDE Running Your First Program on Jupyter Notebook Cont…

Step 8: Type y o Press the Enter key

SLIDE Running Your First Program on Jupyter Notebook Cont…

o The Jupyter Notebook will close from the Web Browser😊

Page 86: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

It’s‎Poetry‎Time

Shair No 01

ےھجممالممںیممایخكمےھجمماھتماکمسجمایخك

ےھجممالممںیمموساكمیھبموجابماکموساك

ر ي

ن

اینزیمم

It’s‎Jokes‎Time

Joke No 01

؟میگمرکهمایکممتموتمےئگمرممںیممارگ

اجؤاگنموہمی لگمںیم

دیمدهرسیممتمایکموت

؟مرکهےگمش

یپ:ممےہماتکسمرکمیھبمھچکمی لگ

Joke No 02

رفمنممدهڑمےکمآجرمدنبہمهیہمص ےہماتکسملچمےکمااھٹمسر

.

.

ممسیاممیامسیامی سمےکمسج

پ

م

ي ب

م

س

ج

ک

یپ.م.م.م.م:مموہمہنم

Page 87: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

Stop Complaining! Stop Criticizing! Let’s Start Contributing

SLIDE A True Story

Here I am writing a true story of one of my Respected Teachers (Prof. Dr. Yaseen Iqbal Department of Physics, University of Peshawar, Pakistan)

SLIDE Story

In 1996, I was a PhD student at University of Sheffield, England. One day, I was having a walk with my friends. We saw an Old Lady picking up French Fries (potato chips) from the Foot Path. One of my friends, said to the Old Lady

o Mam! Why are you picking these? It is a crowded place and you may get hurt.

Old Lady replied o Gentleman! This is MY Country. If it is dirty. I feel dirty.

Remember o There is nothing like

Big Contribution or Small Contribution

o Contribution is Contribution 😊

Let’s Strat Contributing from Today

o To make this Beautiful World, more Beautiful 😊

Page 88: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

It’s‎Poetry‎Time

دےتیمایکماسحبماکملمعماےنپمیسیک

دےتیمایکموجابمےھتمطلغماسرےموساك

ر ي

ن

اینزیمم

Page 89: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

SLIDE

Lecture Summary

SLIDE Lecture Summary

To systematically perform any Real-world Task, follow the following steps o Step 1: Completely and correctly understand the Real-world Task

Write down two main things

Given

Task o Step 2: Understand the Input and Output

Write down two main things

Input

Output o Step 3: Plan and Design a Template-based Approach to perform the

Real-world Task Step 3.1: Use Divide and Conquer Approach to break the

Real-world Task into

Steps / Sub-steps / Sub-sub-steps Step 3.2: For each Steps / Sub-steps / Sub-sub-steps

Check the Order and Flow between Steps / Sub-steps / Sub-sub-steps

Check the Connectivity and Independence between Steps / Sub-steps / Sub-sub-steps

o Step 4: Use a Five Step Process to perform the Real-world Task Step 4.1: Plan – in Mind Step 4.2: Design – on Paper Step 4.3: Execute – at Prototype level Step 4.4: Execute – at Full Scale Step 4.5: Take Feedback from Users / Audience and Domain

Experts to further improve the solution of Real-world Task o Step 5: Document each and every Step, when performing a Real-

world Task

Alhumdullilah, in this Lecture we systematically learned how to

Page 90: Introduction to Python - ilmoirfan...Introduction to Python LECTURE 01 Installation of Anaconda and Jupyter Notebook on Windows Authors: Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab

o Use the Best Trashing and Learning Methodology of the World to systematically perform any Real-world Task using a Template-based Approach

o Download Anaconda for Windows o Install Anaconda on Windows o Verify Installation of Anaconda o Run your First Python Program

o Start Contributing from Today 😊