Python

 



What is Python?

Python is an interpreted High Level Programming language for general purpose programming.

Python एक general purpose प्रोग्राम के लिए एक interpreted high level programming language है

Created by Guido Van Rossem and first release in 1991.

It is very simple and dynamic language. Even if you have never done coding before today, you can do it easily, and if you are already learning Python, and you are not completely comfortable then you can follow us.

If you know programming language but do not know how to make software, how to web designing, or how to make games and applications, then you can follow us. Even companies like Google YouTube Instagram also use python.

यह बहुत ही आसान ओर dynamic लैड्ग्वेज है। अगर आपने आज से पहले कभी coding नहीं की तब भी आप इसको आसानी से कर सकते हैं, ओर यदि आप पहले से Python सीख रहे हैं, ओर आप पूरी तरह comfortable नहीं हैं तो आप हमको follow कर सकते हैं।

यदि आपको programming language आती है पारुंतु ये नहीं पता की software कैसे बनाते हैं, web designing कैसे होती हैं, या गेम ओर application कैसे बनते हैं तो आप हमको फॉलो कर सकते हैं। यहाँ तक की google youtube instagram जैसी company भी python का यूज करती हैं।

Scope

Application Development

Graphic Development

Game Development

Web Designing

Data analysis

Artificial Intelligence

Machine learning

Deep learning

Python 1:- Watch Video - Click here

How to download and install Python?

Go to you internet Browser and open https://www.python.org/downloads/ website


Choose Python version according your OS and Download it


Run the Download Python File and Next Step by step follow the Instruction (Install correctly please watch this video: https://www.youtube.com/watch?v=k0uFJBIUwCQ


You can Download “Pycharm” also for Better Interface and Code Highlight. Download link below

https://www.jetbrains.com/pycharm/download/#section=windows




Write Python Program

Python provides us the facility to write Python Program in one file that will be executed line by line sequentially. Steps for writing Python Program:

Python हमें एक फ़ाइल में Python प्रोग्राम लिखने की सुविधा प्रदान करता है जिसे क्रमिक रूप से लाइन दर लाइन निष्पादित किया जाएगा। Python प्रोग्राम लिखने के चरण:



1.      Open Python IDLE.


2.      Click on “File Menu” and then choose “New File”.


3.      A new screen/window will appear.


4.      Here type the python program and save the program with “File.py” extension.


5.      To run the program click on “Run” menu and click on “Run Module”


6.      The python code will start running.

Python 1:- Watch VideoClick here

Python 2:- Watch VideoClick here

Program 1 “Print” Command:

Print (“Hello World”)

After writing this program, save the program with “File.py” extension and Run it. All the statement inside it will be executed.

Output: Hello Word

Program 2 “Input” Command: Python provides us the facility to take input from user using Input() Function. This function prompts the user to input a value.

Syntax: Name =           Input (“Enter Your Name”);

                                    Print (Name);

Exp:

Name = Input (“What is your Name”)

Print (“Hello Mr.”, Name)

Output: What is your Name |

Type your name on Cursor Position, like “Manoj” and press Enter

Output: Hello Mr. Manoj

Please note that the Input () accepts the input only in string format. So, if any mathematical is to be performed, we need to convert the input to integer format. For converting the input to integer format Python Provide us a function called: int (), Lets discuss this function:

Program 3 Adding Two Numbers without using INT () Function

A =         input (“Enter 1st Number :”);

B =          input (“Enter 2nd Number :”);

c = a+b

Print (“Adition = “, C);

Output:            Enter 1st Number:

                        Enter 2nd Number:

Enter both number here (like 10 or 20) and press Enter

Result:

Addition: 1020

(In this case if the value of a & b as given by user is 10 & 20 respectively then the output will be 1020 as 10& 20 will be treated as string and not integer.)

Program 4 Adding Two Numbers with using INT() Function:

A = int(input(“Enter 1st Number:”));

B = int(input(“Enter 2nd Number:”));

C = A+B;

Print (“Addition = “, C);

Output:            Enter 1st Number:

                        Enter 2nd Number:

Enter both number here (like 10 or 20) and press Enter

Result:

Addition: 30

(In this case if the value of a & b as given by user is 10 & 20 then the output will be 30 as we have conberted the input from string to integer format.)



[1] “Name” is a Variable

Python 3:- Watch Video - Click here


Escape Character & Line Break in Python ........
Python 3:- Watch Video - Click here

Escape Character                                           Next >>

कोई टिप्पणी नहीं

टिप्पणी: केवल इस ब्लॉग का सदस्य टिप्पणी भेज सकता है.

Send Multiple Emails From Excel | Send Bulk Mail from Excel Sheet with Attachment in One Click

Send Multiple Emails From Excel | Send Bulk Mail from Excel Sheet with Attachment in One Click Download VBA Code Notepad file - Click here D...

Blogger द्वारा संचालित.