Modules and import in Python

Sometimes you may think that “how do I import some code I wrote in one file into another”?. You don’t want to write the same block of codes or redefine in your file. I this tutorial we talked about it. Contents What is Module Import Import with alias from with import Difference between from import … Read more

Different Types of Loop statement in Python

Loop statements are an essential part of any programming language, as they allow us to repeat a block of code multiple times. This reduces the coding work and the frustration of writing the same code multiple times.

In Python, there are different types of loop statements that are used for various purposes.

There are the following types of loops available in Python –

  1. While
  2. for

You can also specify the else block with a looping statement.

Different Types of Loop statement in Python

Read more

Make Autocomplete Search with jQuery AJAX

Autocomplete search filter display suggestion based on the user input e.g. listing all products which start with the character ‘a’.

It makes easier for the user to search for an item from the list and select it from the suggestion list.

Require jQuery AJAX for implementing this.

Whenever the user enters a character send an AJAX request to fetch records with PHP and display the result.

In the demonstration, I show a textbox to search users. When an item selected from the suggestion list then fetch details of the selected users and display on the screen.

Make Autocomplete Search with jQuery AJAX

Read more