MM Programmer

MM Programmer Blog for programmer in myanmar

Free course for Python3 Link ⬇⬇⬇⬇⬇
27/12/2020

Free course for Python3

Link ⬇⬇⬇⬇⬇

Learn Python Programming. A Premium level course with over 500 examples! No prior knowledge is needed.

This book is one of the best study materials we would recommend for learning python.It is good for those especially who ...
14/12/2020

This book is one of the best study materials we would recommend for learning python.
It is good for those especially who want to learn coding with no prior experience.
If you want any advanced pdf about python, Please let me know in the comment.
We will post regularly for further knowledge about programming in the future.
If this book helps you in any way for your journey in learning programming.
Please like and share this post.

https://drive.google.com/file/d/13cRD8UZjS-I9PqMOgzqwXgMTkuerui-6/view?usp=sharing

Python String Method part(1)A string is a sequence of characters enclosed in quotation marks. In this reference page, yo...
31/10/2020

Python String Method part(1)

A string is a sequence of characters enclosed in quotation marks. In this reference page, you will find all the methods that a string object can call. For example, you can use the join() method to concatenate two strings.


31/10/2020


31/10/2020

What is python? • ယခုချိန်မှာ Python က popular အဖြစ်ဆုံး language တစ်ခုလို့ ပြောမယ်ဆိုရင် မမှားနိုင်ပါဘူး။ Python ကို Gu...
14/10/2020

What is python?

• ယခုချိန်မှာ Python က popular အဖြစ်ဆုံး language တစ်ခုလို့ ပြောမယ်ဆိုရင် မမှားနိုင်ပါဘူး။ Python ကို Guido van Rossum ဆိုသူက တီထွင်ပြီး ၁၉၉၁ ခုနှစ်မှာ စတင် အသုံးပြုခဲ့ပါတယ်။ Python နဲ့ web development,Game Development, AI and machine learning, software development, system scripting, etc.… တွေမှာ အသုံးပြုနိုင်ပါတယ်။ python က မတူညီတဲ့ Platforms မျိုးစုံမှာ အလုပ်လုပ်ပါတယ်၊ ဆိုလိုချင်တာက Windows တစ်ခုတည်း မဟုတ်ပဲ Mac, Linux, Raspberry Pi, etc တွေမှာပါ အလုပ်လုပ်နိုင်ပါတယ်။ သုံးရတာလဲ အရမ်းလွယ်ကူပါတယ်၊ code တွေ ဆိုပေမယ့် English စာရေးနေရသလိုပါပဲ။ အဲ့အတွက်ကြောင့် တစ်ခြား language တွေလောက်လဲ မရှုတ်ထွေးတော့ဘူး line တွေလည်း အများကြီးရေးစရာ မလိုတော့ ပိုပြီး အဆင်ပြေတာပေါ့။ Python မှာ marjor version ဆိုပြီး Python2 နဲ့ Python3 ဆိုပြီးရှိပါတယ်။ လက်ရှိမှာတော့ Python2 ကို မသုံးကြတော့ပါဘူး Update လည်းထပ်မလာတော့ဘူးလေ အဲ့ကြောင့် Python ကို လေ့လာမယ်ဆိုရင်တော့ Python3 ကိုပဲ့ လေ့လာကြပါလို့ ပြောချင်ပါတယ်။ အခုဆိုရင် 3.9 တောင် ရောက်နေပါပြီ။

ကျွန်တော်တို့ computer မှာ python ရွိမရွိစစ်မယ်ဆိုရင် cmd မှာ Python ဆိုပြီး ရိုက်လိုက်လို့ အောက်ကပုံမှာလို Python version တွေကို မြင်နေရပြီး( >>> ) အဲ့လိုပေါ်နေပြီဆိုရင် Interpreter ပေါ်ရောက်နေတာ ဖြစ်တဲ့ အတွက် Python ကိုစသုံးလို့ ရပါပြီ။

အဲ့လိုမပေါ်သေးဘူးဆိုရင်တော့ Python ကို Install လုပ်ဖို့ လိုအပ်ပါသေးတယ်။
Install လုပ်မယ်ဆိုရင်တော့ https://www.python.org/downloads/ မှာ Down လိုက်ပါ။


IDE (Integrated Development Environment)

ကျွန်တော်တို့ code ရေးကြတော့မယ် ဆိုရင် Interpreter ပေါ်မှာ စမ်းဖို့လောက်ပဲ အဆင်ပြေနိုင်တဲ့ အတွက်ကြောင့် IDE လို application တွေ လိုအပ်လာပါတယ်။ IDE တွေမှာ များသောအားဖြင့် source code editor နဲ့ build လုပ်ရန် auto ပါလာတယ်။ python ကို မှာ သုံးဖို့အတွက် IDE အချို့ကို ဖော်ပြပေးလိုက်ပါတယ် (Eclipse with PyDev, spyder, Vscode, sublime text, pycharm, etc.) မိမိကြိုက်နှစ်သက်ရာ ရွေးပြီးသုံးနိုင်ပါတယ်။

Vscode Download လုပ်ရန်
https://code.visualstudio.com/download

sublime text Download လုပ်ရန်
https://www.sublimetext.com/download

အဆင်ပြေမယ်လို့တော့ထင်ပါတယ်။

Compiler and Interpreter   High level language တွေနဲ့ ရေးထားတဲ့ Code တွေကို Computer နာလည်စေရန်အတွက် မ run ခင်မှာ machin...
12/10/2020

Compiler and Interpreter


High level language တွေနဲ့ ရေးထားတဲ့ Code တွေကို Computer နာလည်စေရန်အတွက် မ run ခင်မှာ machine code တွေအဖြစ်ပြောင်းထားပေရပါတယ်။
အဲ့လိုပြောင်းတဲ့နေရာမှာ Compiling နဲ့ Interpreting လုပ်တယ်ဆိုပြီး နှစ်မျိုးရှိပါတယ်။

Compiling
High level language တွေနဲ့ code တွေကို compile လုပ်ဖို့အတွက် compiler တွေလိုအပ်ပါတယ်။ compiler တွေကတော့ အများကြီးပဲပေါ့ မိမိကြိုက်နှစ်သက်ရာနဲ့ သုံးနိုင်ပါတယ်။ အဲ့လို့ compiler တွေနဲ့ compile လုပ်လိုက်တဲ့ အခါ Executable Code တွေအဖြစ် ရလာပါတယ်။(.exe) လိုမျိူးပေါ့၊ Executable code တွေကိုမှ Computer hardware တွေကို နားလည်စေတဲ့ အတွက် ကျွန်တော်တို့ရဲ့ result တွေကို ရရှိလာမှာပါ။

Interpreter
Hight level language နဲ့ ရေးထားတဲ့ code တွေကို Hardware တွေကို တိုက်ရိုက်နားလည်စေနိုင်တဲ့ အတွက်ကြောင့် ချက်ချင်း Result ကို သိနိုင်ပါတယ်။

Compiling Vs Interpreting
Compiling လုပ်တာက အဆင့်တွေများတယ် ဆိုပေမယ့် တစ်ခါ compile လုပ်ထားတာနဲ့ ကြိုက်တဲ့ အချိန်မှာ run နိင်တယ်။ run ချင်တဲ့ အချိန်တိုင်း compile လုပ်စရာ မလိုဘူးပေါ့။

Interpreting လုပ်ထားတဲ့ code တွေကို ချက်ချင်း run နိုင်တယ် ဆိုပေမယ့် run ချင်တဲ့ အချိန်တိုင်း interpret လုပ်ပေးရပါတယ်။အဲ့တော့ အလုပ်တော့ ရှုပ်တာပေါ့ run ချင်တဲ့ အချိန်တိုင်း inteperpret လုပ်နေရတယ်။ ဒါပေမယ့် ကျွန်တော်တို့ code တွေ လုပ်မလုပ်ဆိုတာကို
စစ်ဆေးတဲ့အခါ စမ်းတဲ့အခါတွေမှာတော့ အလွယ်တကူ result ကို သိနိင်တဲ့အတွက် အဆင်ပြေသွားတာပေါ.။

--------------------------------------------------------------------------
ကျွန်တော် သိသလောက် ရှင်းပြထားတာဖြစ်တဲ့ အမှားများပါခဲ့ရင် ခွင့်လွတ်ကြပါ
လိုအပ်တာလေးတွေကိုလည်းပြောပြပေးကြပါအုံးနော်
အားလုံးကို ကျေးဇူးတင်ပါတယ်။

What is Computer Programming?    ကွန်ပျူတာတွေကို အလုပ်လုပ်စေဖို့အတွက် ကျွန်တော်တို့ က ခိုင်းပေးရပါတယ်။ အဲ့လိုခိုင်းဖို့ ...
12/10/2020

What is Computer Programming?

ကွန်ပျူတာတွေကို အလုပ်လုပ်စေဖို့အတွက် ကျွန်တော်တို့ က ခိုင်းပေးရပါတယ်။ အဲ့လိုခိုင်းဖို့ အတွက်က လုပ်မယ့်အလုပ်ပေါ် မူတည်ပြီးတော့ Program ရှိဖို့လိုအပ်ပါတယ်။ ဥပမာ- Documentation လုပ်ဖို့ဆိုရင် Microsoft Word run ပေးရသလိုပေါ့။ Program ဆိုတာ အစိစဉ်တကျရေးဆွဲတဲ့ instruction တွေကိုခေါ်ပါတယ်။ ဥပမာ- အိမ်တစ်အိမ်မှာ အိမ်အကူတစ်ယောက် ခေါ်ထားတယ် ဆိုပါဆို့။ မနက်ရောက်တော့ သူက စောစောထနေတယ် ဘာလုပ်ရမှန်း မသိသေးလို့ ထိုင်နေလိုက်တယ်။ အဆင်မပြေသေးဘူး အဲ့တော့ ကြိုပြောထားလိုက်မယ် မနက်စောစောထပြီးရင် မီးမွှေးထားပါ၊ ပြီးရင် ရေနွှေးအိုးတည်ထားလိုက်။ ဆိုတော့ သူကတော့ အာ့တွေပဲလုပ်ထားလိုက်တယ် မီးတွေက ဒီအတိုင်းပဲဆိုတော့ တစ်ခုချင်းဆီခို်င်းနေရတော့ အိမ်ရှင်က ဘာမှမလုပ်ရပေမယ့် လိုက်ခို်င်းနေရတော့ အဆင်မပြေဘူးပေါ့။ ဒါနဲ့နောက်နေ့ကြ အိမ်ရှင်က စာရွက်ပေါ်မှာ အစီစဉ်တစ်ကျ ရေးထားလိုက်တယ်။

၁. မနက်စောစောထပါ။
၂. မီးမွှေးပြီး ရေနွှေးအိုးတည်ထားပါ။
၃. ရေနွှေးအိုးတည်နေချိန်မှာ ထမင်းအိုတည်ဖို့ ပြင်ဆင်ပါ။
၄. ထမင်းအိုတည်ပြီး ပေါင်မုန်ု့မီးကင်၊ ထောပါတ်သုတ်ထားပါ။

အဲ့လိုရေးထားပြီးတော့ အိမ်အကူမြင်နိုင်တဲ့နေရာမှာ ကပ်ထားလိုက်တယ်။ အိမ်ရှင်တွေ အိပ်ယာထရင် မနက်စာတန်းစားလို့ရပြီ။

ကျွန်တော်တို့ကလည်း computer တွေကို အစိစဉ်တကျ လုပ်စေဖို့ Program တွေရေးထားဖို့ လိုအပ်ပါတယ်။ အဲ့တော့ Computer တွေနားလည်မဲ့ စာနဲ့ ကျွန်တော်တို့က ရေးပေးဖို့လိုအပ်ပါတယ်။ လူစကား နားမလည်ပါဘူး။ Computer နားလည်တဲ့ binary bits (1,0) တွေကို စုပေါင်းရေးထားတာတွေကို Instruction တွေလို့ ခေါ်ပါတယ်။ ဥပမာ- ကျွန်တော်တို့က Keyboard ကနေ (A) ဆိုပြီးရိုက်လိုက်မယ်ဆိုရင် Computer ကနားမလည်ပါဘူး အဲ့တော့ သူနားလည်တဲ့ (1,0) အဖြစ် eg.(0010) ဆိုပြီးပြောင်းလိုက်ပြီး အလုပ်လုပ်တယ်။ ကျွန်တော်တို့ကလည်း (1,0) တွေကိုလည်း အလွတ်မမှတ်နိုင်ဘူးလေ။ အဲ့တော့ လူတွေပြောတာတွေကို computer က နားလည်စေဖို့ ကြားခံတစ်ခုခုတော့ လိုအပ်လာပြီ။ ဒါကြောင့် လူသားတွေက ကြားခံအဖြစ် Programming language တွေကို စတင်တီထွင်ခဲ့ကြတယ်။

Machine Language ကနေ Computer ကို တိုက်ရိုက် နားလည်စေနိုင်တဲ့အတွက် Hardware တွေကို တန်းခိုင်းလို့ရပါပြီ။ ဒါပေမယ့် ကျွန်တော်တို့ လူတွေ Machine language ကို အသုံးပြုဖို့ကလည်း ထင်သလောက် မလွယ်နိုင်ပါဘူး။
အဲ့ကြောင့် Machine language ကို သုံးရတာလွယ်ကူစေရန််အတွက် Assembly Language ဆိုပြီး ထပ်မံအသုံးပြုခဲ့ကြပါတယ်။ သို့ပေသော်ငြားလည်း Machine language နဲ့ Assembly Language တွေဟာ Low-level programming language တွေဖြစ်တဲ့အတွက်ကြောင့် လူတွေအတွက် နားလည်လွယ်ကူစေမယ့် High-Level programming language တွေကို သုံးကြပါတယ်။ High-level programming language တွေကတော့ ကျွန်တော်တို့ သိကြတဲ့ Java, Python, javaScript, Ruby,… ဆိုပြီး ရှိကြပါတယ်။ မိမိသုံးမယ့် Platform ပေါ်မူတည်ပြီး programming language တွေကို သုံးနေကြပါတယ်။ ဒါပေမယ့် ကျွန်တော်တို့ သိထားရမှာက ကျွန်တော်တို့ အလွယ်တကူရေးနိုင်တဲ့ High-level programming Language တွေနဲ့လည်း Computer တွေကို တိုက်ရိုက်မခိုင်းနိုင်ပါဘူး။ အဲ့ကြောင့် High-level language တွေကနေ low-level ဖြစ်တဲ့ Assembly ၊ Assembly ကနေ Machine language ၊ Machine language ကနေမှ Computer Hardware တွေကို ခိုင်းနိုင်မယ်ဖြစ်ပါတယ်။

ကျွန်တော် သိသလောက် ရှင်းပြထားတာဖြစ်တဲ့ အမှားများပါခဲ့ရင် ခွင့်လွတ်ကြပါ
လိုအပ်တာလေးတွေကိုလည်းပြောပြပေးကြပါအုံးနော်
အားလုံးကို ကျေးဇူးတင်ပါတယ်။

Address

Yangon

Website

Alerts

Be the first to know and let us send you an email when MM Programmer posts news and promotions. Your email address will not be used for any other purpose, and you can unsubscribe at any time.

Share