Python

NumPy Where Function

Submitted by moazkhan on

In this tutorial you will learn:

  • What is array search?
  • NumPy where() function
  • Python Syntax

Array Search

Array search is carried out to check whether a specific element (alphabet / word / number) exist in an array or not. Generally all the searching algorithms return index of the number being searched and procedure involves iterating through each element of the array. There are two methods in NumPy for searching the array

Flappy Bird Game Using Pygame

Submitted by razormist on
Flappy Bird Game with Source Code is a Python program that is a single-player arcade game that is similar to the ones from Android and IOS system. This program was developed using Python language. The program is very simple, the player can control the bird by clicking the screen with left click in order to move the bird upward. The player must survive until the end to get higher score than anyone

NumPy Stack

Submitted by moazkhan on

In this tutorial you will learn:

  • What is NumPy Stack function and its uses?
  • Results of hstack on 1D, 2D and 3D arrays
  • Results of vstack on 1D, 2D and 3D arrays
  • Results of dstack on 1D, 2D and 3D arrays

NumPy Stack Function

NumPy Iterator

Submitted by moazkhan on

In this tutorial you will learn:

  • Iterating Arrays using nditer
  • DataType Casting
  • Iterating with Step Sizing

Iterating Arrays using nditer()

nditer is an iterator object that was first introduced in NumPy 1.6. For a multi dimensional array it becomes a cumbersome task to write a For loop for each dimension, so nditer provides a flexibility to efficiently and systematically iterate a complete n-dimensiona array.