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.
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.
- Install IDE
- Arithmetic Operators
- Bitwise Operators
- Comparison Operators
- Logical Operators
- 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.
- If Statement
- If Else Statement
- Nested If Statement
- Elif Statement
- While Loop
- For Loop
- Break Statement
- Continue Statement
Python Object Types
- Difference between Dictionary copy and = operator
- List Comprehensions
- Types of Functions
- ASCII Table
Python SQL Server Tutorial
The following are some of the queries that we can use on SQL Server.
- Connect Python and SQL
- Create Database
- Select Records from Table
- Select Sorted Table Records
- Top 10 records
- 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.
Python Tutorial on Math Functions
Below table will show you the list of Mathematical function available in Python
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.
Python List Functions
The List Data type has separate methods for adding, removing, finding, manipulating, and reversing list items. The following are the available list functions in Python.
Python Dictionary Functions
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.
Python set Functions
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
Python NumPy module is an open-source module that provides various functions to perform mathematical operations on N-dimensional array objects.
- Numpy Array
- Aggregate Functions
- Arithmetic Operators and Functions
- Bitwise Operators and Functions
- Comparison Operators and Functions
- Exponential and Log Functions
- Logical Operators and Functions
- String Functions
- Trigonometric Functions
- Generate Random Array
- Numpy Array Shape
- 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.