Responsive Ad Slot

Latest

latest

Python Introduction | Learn With Pirates

Tuesday, 20 April 2021

/ by Captain Jay's

Python For Beginner


Chapter 0: Introduction 

What is python?


Python is one of the most popular languages for programming. Python is invented by Guido Van, released in 1991.

 
These are some use of python:
Software development
Mathematics
System scripting
Web development


Some capability of python:

Python can use in web application development
Python can use in artificial intelligent
Python can connect to the database for the application backend


Why do you use python?

Python is platform-independent
It has very simple syntax and structure
With python, the programmer develops application very easy rather then other.

Chapter 1: Python Overview


Python syntax


print(“Hello World”)


Set up the environment for developing amazing things:
The download python for your os

Install with this command:


 

Check the python version with this command:


Write your first code:

 

Note: You use whatever os for this task-it not mandatory to use Linux. 

Here you need one IDE for write python code:

Guide: Download Visual Studio


Comment Python:

A comment is used to write instruction or anything that not going to execute.


Define In code with 

#comment : For singal line Comment

''' comment ''' : For multiline Comment

# This is a singalline comment
''' This
is
a
multiline
comment '''


Module:

The module it a specific task code. That we use as an importing in our program.

Module Types:

Built-In Module: This is a preBuilt module in python. They did not need to install. like os, etc.
 

External Module: This is written by someone to make the task easy for a specific task. They need to import and install. like tensorflow, etc.

import os

print("Hello Pirates")

Using python as a calculator:

You can use Python as calculator as you see into code

print(3+4)
print(3-2)
print(3/2)
print(4%2)

output
7
1
1.5
0

 

Termination

If you Like this tutorial please share with your friend and family. I make an amazing tutorial in this blog. If you have any queries and question ask me in the comment section below.


No comments

Post a Comment

Don't Miss
© all rights reserved
made with by templateszoo