Python List and Tuples 4 | Learn With Pirates
No commentsThursday, 22 April 2021
April 22, 2021Python String 3 | Learn With Pirates
No commentsWednesday, 21 April 2021
April 21, 2021Python String 3 | Learn With Pirates
Chapter 3: Python String
String is one data type in pythonHow to identify String
The string is a sequence of character enclose in quotesHow to Written String:
- Single quotes
- Double quotes
- Triple quotes
String Slicing
Example For:
slicing= name[int_start: int_end]
String index is started negative indexing at -1 to (n-1) in python.
Sting Functions:
This function returns a length of a string.
string.endwith(word)
this searches your word in the string if the word is present is give True, else False.
this function return string total number of character of string.
return first character capital of string.
This is work as a search option. it searches for a word a given answer.
this function is use for replace word in to string
Escape Sequence Characters
Identifya sequence of characters after '\' backslash
Example:
Termination
Python Variable and Data Type 2 | Learn With Pirates
No commentsPython Variable and Data Type 2 | Learn With Pirates
Chapter 2: Python variable and Data Type
Data Types
There are some Rule to define a variable
- Variable Content alphanumeric, alphabet, underscore
- a variable name can only start with alphabets and underscore
- a variable name can not start with numbers
- space can not contain a variable name.
Operates in Python
type() Function
Type Casting
input() Function
Termination:
Python Introduction | Learn With Pirates
No commentsTuesday, 20 April 2021
April 20, 2021Python 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
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
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.
Using python as a calculator:
You can use Python as calculator as you see into code
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.





