Python Programming Day1

 


Table of Contents:

1.Python Introduction

2.Python Features

3.Career with Python

4.Python Syntax

5.Python Install


1)Python Introduction:

Python is a popular programming language. It was discovered by Guido van Rossum in 1991.

Python Used for:
1)web development (server-side)
2)software development
3)Python can connect to database systems. It can also read and modify files.
4)Python can be used to handle big data and perform complex mathematics.

2)Python Features:

Easy to learn: 
Python has simple structure, and clear syntax and easy to learn.

Expressive Language:
Python can perform complex tasks using a few lines of code. A simple example, the hello world program you simply type print("Hello"). It will take only one line to execute, while Java or C takes multiple lines.

Interpreted Language:
Python is an interpreted language where interpreter reads the code line by line. Programming languages such as C, C++ where the compiler first compiles the code and then runs the code.

Free and Open Source:
Python is freely available for everyone. It is freely available on its official website www.python.org. It has a large community across the world that is dedicatedly working towards make new python modules and functions. 

Object-Oriented Language:
Python supports object-oriented language and concepts of classes and objects come into existence. It supports inheritance, polymorphism, and encapsulation, etc. The object-oriented procedure helps to programmer to write reusable code and develop applications in less code.

GUI Programming Support:
Graphical User Interface is used for the developing Desktop application. Tkinter, Kivy are the libraries which are used for developing the web application.

3)Career with Python:
There are numerous exciting career paths available for individuals skilled in Python. Here are some of the options:

  1. Python Developer
  2. Machine Learning Engineer
  3. Data Scientist
  4. Data Analyst
  5. Data Engineer
  6. DevOps Engineer
  7. Software Engineer
  8. Game Developer
  9. Web Developer
  10. Full-Stack Developer

4)Python Syntax:

Python is known for its clean and easy-to-understand syntax, which contributes to its popularity among developers.

#Basic Syntax
print("Hello World")

#output
Hello World

Python Indentation:

1)Indentation refers to the spaces at the beginning of a code line.
2)Where in other programming languages the indentation in code is for readability only, the indentation in Python is very important.
3)Python uses indentation to indicate a block of code.

if 10 > 5:
    print("YES")
else:
    print("NO")

Python will give you an error if you skip the indentation:

if 10 > 5:
print("YES")

Indentation Error:

File "myfile.py", line 2
    print("YES")
    ^
IndentationError: expected an indented block after 'if' statement on line 1

NOTE:
The indentation in Python is very important.

5)Python Install:

Install Python IDLE in below website


Python IDLE:
Python IDLE (Integrated Development and Learning Environment) is an interactive development environment that comes bundled with the Python programming language. It provides a convenient way to write, execute, and debug Python code.

Uses:
  1. Writing and Executing Code
  2. Interactive Shell
  3. Debugging
  4. Code Completion and Syntax Highlighting
  5. Access to Python Documentation
  6. Creating Python Modules
                        (or)
You can practice coding problems in below online compilers:


Post a Comment

Previous Post Next Post

Contact Form