Python | WELCOME TO SUNRISE PROGRAM By. Shivansh Sir
PYTHON PROGRAMMING
PYTHON | WELCOME TO SUNRISE PROGRAM
Install Python on Local Computer
Step 1 (Download Python IDLE) : Python को मुफ्त में download किया जाता है | Python को download करने के लिए http://www.python.org/downloadsइस link पर जाकर latest (3.6.7) version को download करें, चाहे तो अपने जरुरत के हिसाब से कोई भी versions download किये जा सकते है |
Step 2 (Installing Python) : Download करने के बाद download हुई file को double click करके Install करे |
Step 3 (Open Python IDLE) : जहा पर उसे install किया गया है उस path पर जाकर उसे open करे |
Step 4 (Python Program in Shell) : Python के साधारण से Program को Shell में लिखिए |
Step 5 (Create .py file) : Shell के बावजूद python program को अपने computer पर save करने के लिए Shell में file menu पर जाकर new(Ctrl+N) पर click करके अपना program लिखे |Save करने के लिए Ctrl+S या file में save button पर click करे | उसके बाद उसे नाम देकर .py के साथ वो default set किया जायेगा | अगर extension दिया भी जाता तब भी कोई दिक्कत नहीं आती है |For eg. new.py
Step 6 (Run .py file) : Python file को save करने के बाद उसे Run करने के लिए Run में Run Module या F5 का इस्तेमाल करे |
'WELCOME TO SUNRISE' Program in Python
In Shell
>>> print("WELCOME TO SUNRISE COMPUTER")
WELCOME TO SUNRISE COMPUTER #Output
Save new.py
print("WELCOME TO SUNRISE COMPUTER")
Output
WELCOME TO SUNRISE COMPUTER
Difference Between Version 2.7.x and Version 3.x.x
In 2.7.x
Python 2.7.x में print ये function नहीं होता है |
print "WELCOME TO SUNRISE COMPUTER"
a = 1 / 2
print a
Output
WELCOME TO SUNRISE COMPUTER
0
In 3.x.x
Python 3.c.x में print() ये function होता है |
print "WELCOME TO SUNRISE COMPUTER"
a = 1 / 2
print a
Output
WELCOME TO SUNRISE COMPUTER
0.5
For Any Doubt Clear on Telegram Discussion Group
Comments
Post a Comment