Reading Time: 1 minutesdivisible by 9 but not multiples of 2 in Python divisible by 9 but not multiples of 2 in Python Divisible by 9 but not multiples of 2: Write a […]
Nalini Aggarwal
PyPro #49 All Sublists of a List
Reading Time: 1 minutesAll sublists of a list in Python All sublists of a list in Python All Sublists of a List: Write a Python program to obtain all possible sublists of a […]
PyPro #48 Implementing Binary Search algorithm in Python
Reading Time: 1 minutesBinary Search algorithm in Python Binary Search algorithm in Python Write a Python program to implement the Binary Search algorithm in Python. Binary Search algorithm in Python See also: Python […]
PyPro #47 Finding words of length from 2 to 4
Reading Time: 1 minutesFinding words of length from 2 to 4 in Python Finding words of length from 2 to 4 in Python Finding words of length from 2 to 4: Using Python, […]
PyPro #44 Compute sum of digits of a number
Reading Time: 1 minutesSum of digits of a number in Python Sum of digits of a number in Python Compute sum of digits of a number: Write a Python Program to calculate the […]
PyPro #38 Cows & Chickens
Reading Time: 1 minutesCows & Chickens in Python Cows & Chickens in Python Cows & Chickens: There are 63 animals in a farm which has only chickens and cows. Leg count is 206. […]
Archiving Files Using zipfile & tarfile Modules
Reading Time: 1 minuteszipfile & tarfile in Python zipfile & tarfile in Python The standard libraries zipfile & tarfile facilitate creating and manipulating zip & Unix tar archive files. The tarfile is not […]
Python: Fetching Last n Items of an Iterable
Reading Time: 1 minutesFetching Last n Items of an Iterable in Python Fetching Last n Items of an Iterable in Python Fetching Last n Items of an Iterable: In order to fetch the […]
Python: Getting Largest or Smallest n items of an Iterable
Reading Time: 1 minutesGetting Largest or Smallest n items of an Iterable in Python Getting Largest or Smallest n items of an Iterable in Python Getting Largest or Smallest n items of an […]
PyPro #30 Computing Factorial of a Number
Reading Time: 1 minutesComputing Factorial of a Number in Python: Compose a factorial() function which accepts an integer and returns its factorial. Factorial (denoted by an exclamation mark !) of a number x […]