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.
- 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
Common Built-in Functions
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.
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 set Functions
Python Data Science
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.
- 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
Please refer to Charts Data article to understand the data that we use to plot charts using Pandas and matplotlib libraries.