Python
Introduction:-
Python Created by Guido Van Rossum in 1991. & its High Level language
Used
1. Web Development
2. Software Development
3.Mechine learning
4. AI
6. Data Mining
Advantages:
- 1. Works on different Platform( Window, Mac, Linux, )
- 2. Simple, easy and use Interpreter System to run the code
- 3.Python Version Python -1, Python 2, Python -3
- 4. Case sensitive language (like AGE, age, Age are different variable)
Installation
Goto https://www.python.org/ or Click here
Software for Run Python :- Visual Studio Code Download , Pycharm Download
Syntax :-
Print ("Hello Yunus Sir")
Save File :- Filename.py (file extension use .py)
Indentation (जगह देनाा)
( minimum one or professional use four space for indentation and if you not use indentation it occur error("Syntax Error ")
Example
if 5 > 2
Print ("five is greater then two ")
Result Syntax error
if 5 > 2
Print ("five is greater then two ")
Result : five is greater than two
Comment in Python ( Use #)
Ex - #this is my first comment in python
or multi line
"""
This is a commentwritten in
more than just one line
"""
No comments:
Post a Comment