Tutorial Gateway

  • C
  • C#
  • Java
  • Python
  • SQL
  • MySQL
  • Js
  • BI Tools
    • Informatica
    • Talend
    • Tableau
    • Power BI
    • SSIS
    • SSRS
    • SSAS
    • MDX
    • R Tutorial
    • Alteryx
    • QlikView
  • More
    • C Programs
    • C++ Programs
    • Go Programs
    • Python Programs
    • Java Programs

Python Tutorial

This Python tutorial helps you to learn Python in the best possible way. We provide multiple examples on each topic. So, you can easily understand these Python tutorial topics. Python Programming language is an object-oriented language, which is sturdy and the fastest growing language in the current situation. Python is very popular, probably because it’s easy to learn code, cross-platform support, and libraries that support Data Scientists to analyze and visualize data.

What I like about Python Programming language is its syntax structure, which removed those traditional flower brackets, semicolons, punctuations. These changes make our code simple and easy to read/understand. Being a C# developer, Python impressed me with its simple syntax, where I have to write a lot of lines to get the same result in C#. Because of this Python’s simple syntax rules, less coding drives the users to learn. I can say, by far, Python is the best language for the people who are new to programming and experienced with other programming languages.

Python Operators Tutorial

In this Python tutorial, we used the default Python IDE for all the examples to explain each topic. However, you can choose your favorite Free/Paid code editors. The Python programming language supports the following operators. We can use these operators to perform calculations on operands or values.

  1. Install IDE
  2. Arithmetic Operators
  3. Bitwise Operators
  4. Comparison Operators
  5. Logical Operators
  6. Assignment Operators

Python Flow Control Statements

Generally, flow control statements contain a condition followed by a block of code. The condition always returns either True or false. Based on the result, the flow control statement will execute the block of code. For instance, if True, the true statements will execute. Otherwise, False statements execute or exit from a control flow statement.

  1. If Statement
  2. If Else Statement
  3. Nested If Statement
  4. Elif Statement
  5. While Loop
  6. For Loop
  7. Break Statement
  8. Continue Statement

Python Object Types

  1. Dictionary
  2. datetime
  3. Difference between Dictionary copy and = operator
  4. Sets
  5. Strings
  6. Tuples
  7. Lists
  8. List Comprehensions
  9. Lambda
  10. Functions
  11. Types of Functions
  12. Iterators
  13. ASCII Table
  14. Files
  15. Directory
  16. Array

OOPS

  1. Classes and Objects
  2. Class Methods
  3. Inheritance
  4. Method Overriding
  5. Static Methods

Python SQL Server Tutorial

The following are some of the queries that we can use on SQL Server.

  1. Connect Python and SQL
  2. Create Database
  3. Select Records from Table
  4. Select Sorted Table Records
  5. Top 10 records
  6. Where Clause

Python Built-in Functions

The Python interpreter has many built-in functions. The following are the list of all the available functions in Python programming language. To make more sense, we divided them into various sections based on their functionalities. 

Python Common Functions

The below shown Python functions are the standard functions for all the objects. I mean, you can use these functions on Lists, Strings, Tuples, Set, and Dictionary objects.

  1. len
  2. max
  3. map
  4. print
  5. sort and sorted
  6. range
  7. zip

Python Dates

  1. strftime
  2. strptime
  3. timedelta

Python Tutorial on Math Functions

The list of Mathematical function available in Python

  • ceil(x)
  • copysign(x)
  • count
  • fabs(x)
  • factorial(x)
  • floor(x)
  • fmod(x, y)
  • frexp(x)
  • fsum(Iterable)
  • gcd(x, y)
  • isclose(x, y)
  • isfinite(x)
  • isinf(x)
  • isnan(x)
  • round(x)
  • ldexp(x, i)
  • modf(x)
  • trunc(x)
  • exp(x)
  • expm1(x)
  • log(x, base)
  • log2(x)
  • log10(x)
  • pow(x)
  • sqrt(x)
  • acos(x)
  • asin(x)
  • atan(x)
  • atan2(y, x)
  • cos(x)
  • hypot(x, y)
  • sin(x)
  • tan(x)
  • degrees(x)
  • radians(x)
  • acosh(x)
  • asinh(x)
  • atanh(x)
  • cosh(x)
  • sinh(x)
  • tanh(x)
  • erf(x)
  • erfc(x)
  • gamma(x)
  • lgamma(x)

Python Tutorial on String Functions

Unlike List, Python string is immutable. So, we cannot perform adding, removing kind of operations on this. However, one can perform a slice or concatenate. Apart from this, a string has its methods to convert it to uppercase and lowercase, splitting, joining, etc. The following Python tutorial sections show the list of string methods available in Python.

  • Introduction
  • capitalize()
  • casefold()
  • center()
  • count()
  • encode()
  • endswith()
  • expandtabs()
  • find()
  • format()
  • format_map()
  • index()
  • isalnum()
  • isalpha()
  • isdecimal()
  • isdigit()
  • isidentifier()
  • islower()
  • isnumeric()
  • isprintable()
  • isspace()
  • istitle()
  • isupper()
  • join()
  • ljust()
  • lower()
  • lstrip()
  • maketrans()
  • partition()
  • replace()
  • rfind()
  • rindex()
  • rjust()
  • rpartition()
  • rsplit()
  • rstrip()
  • split()
  • splitlines()
  • startswith()
  • strip()
  • swapcase()
  • title()
  • translate()
  • upper()
  • zfill()

Python List Functions Tutorial

The Python List Data type has separate functions for adding, removing, finding, manipulating, and reversing list items.

  • Introduction
  • append
  • clear
  • copy
  • count
  • del
  • extend
  • index
  • insert
  • max
  • min
  • pop
  • sort
  • remove
  • reverse

Python Dictionary Functions Tutorial

Apart from the common functions, Python dictionary has separate functions to select, delete, update, and set values and keys. The following are the available Python dictionary functions.

  1. copy
  2. clear
  3. fromkeys
  4. get
  5. items
  6. keys
  7. len
  8. pop
  9. popitem
  10. setdefault
  11. update
  12. values

Python set Functions

  1. add
  2. clear
  3. copy
  4. discard
  5. len
  6. pop
  7. set max
  8. set min
  9. remove
  10. sorted
  11. union

Python Data Science Tutorial

Similar to any other programming language, Python is an excellent language with all the bells and whistles. However, with the introduction of the Numpy module and few other popular libraries like Pandas, SciPy, and matplotlib, it becomes a heart to Data Science precisely Data scientists. All these libraries made this regular language to the most powerful language in the current scientific world.

Python NumPy Module Tutorial

Python NumPy module is an open-source module that provides various functions to perform mathematical operations on N-dimensional array objects.

  1. Numpy Array
  2. Aggregate Functions
  3. Arithmetic Operators and Functions
  4. Bitwise Operators and Functions
  5. Comparison Operators and Functions
  6. Exponential and Log Functions
  7. Logical Operators and Functions
  8. String Functions
  9. Trigonometric Functions
  10. Generate Random Array
  11. Numpy Array Shape
  12. Numpy concatenate

Python Pandas Module

Please refer to Charts Data article to understand the data that we use to plot charts using Python Pandas and matplotlib libraries.

  1. Series
  2. DataFrame
  3. Pandas plot charts

Python matplotlib Module

  1. Bar Chart
  2. Histogram
  3. Pie Chart
  4. Scatter Plot

Python FAQ’s

  1. List Length
  2. Sort List Items
  3. String Concatenation
  4. String Length
  5. Substring

Python Examples

  1. Python Programming Examples

  • SQL DML, DDL, DCL & TCL Cmds
  • SQL NOT EXISTS Operator
  • SQL UPDATE from SELECT
  • SQL AFTER UPDATE Triggers
  • SQL Get Column Names in Table
  • SQL IF ELSE
  • SQL ACID Properties
  • SQL FOR XML PATH
  • Java Two Dimensional Array
  • Java Perfect Number Program
  • Java Count Digits in a Number
  • C Compare Two Strings Program
  • C Print Prime Numbers 1 to 100
  • C program to Reverse a String
  • C Palindrome Number Program
  • C Program for Palindrome String
  • C Remove Duplicate String Chars
  • C Square of a Number Program
  • C Sum and Average of N Number
  • Python Fibonacci Series program
  • Python Area Of Circle Program
  • Python Prime Numbers 1 to 100
  • Python Program for Leap Year
  • Tableau Rank Calculation
  • Tableau Google Maps usage
  • Power BI Format Dates
  • Power BI Top 10 Filters
  • Power BI – Create Hierarchy
  • Power BI DAX Math Functions
  • Learn SSIS in 28 Days
  • SSIS Transformations
  • SSIS Incremental Load
  • SSRS Drill Through Reports
  • SSRS Drill Down Reports
  • R Programming Tutorial

Copyright © 2021 · All Rights Reserved by Suresh

About Us | Contact Us | Privacy Policy