## Python Program to write some data into a file by user input

In this program, you will learn how to write some data into a file by user input in Python. file = open("abc.txt", "a") Example: How to write some data into…

Continue Reading Python Program to write some data into a file by user input

## Python Program to find the average of 5 numbers using a lambda function

In this program, you will learn how to find the average of 5 numbers using a lambda function in Python. x = lambda a, b, c, d, e: (a +…

Continue Reading Python Program to find the average of 5 numbers using a lambda function

## Python Program to add two numbers using a lambda function

In this program, you will learn how to add two numbers using a lambda function in Python. a = lambda x, y: x + y Example: How to add two…

Continue Reading Python Program to add two numbers using a lambda function

## Python Program using a lambda function

In this program, you will learn how to create a simple program using a lambda function in Python. a = lambda a: a + 10 Example: How to create a…

Continue Reading Python Program using a lambda function

## Python Program to find Armstrong numbers from an array

In this program, you will learn how to find Armstrong numbers from an array in Python. a = arr.array('i', [121, 153, 234, 370, 344, 371]) Example: How to find Armstrong…

Continue Reading Python Program to find Armstrong numbers from an array

## Python Program to find palindrome numbers from an array

In this program, you will learn how to find palindrome numbers from an array in Python. a = arr.array('i', [10, 11, 22, 25, 121, 123]) Example: How to find palindrome…

Continue Reading Python Program to find palindrome numbers from an array

## Python Program to find the sum of all prime numbers in an array

In this program, you will learn how to find the sum of all prime numbers in an array in Python. a = arr.array('i', [2, 3, 4, 5]) Example: How to…

Continue Reading Python Program to find the sum of all prime numbers in an array

## Python Program to find the prime numbers in an array

In this program, you will learn how to find the prime numbers in an array in Python. a = arr.array('i', [2, 3, 4, 5]) Example: How to find the prime…

Continue Reading Python Program to find the prime numbers in an array

## Python Program to find the largest and smallest element of an array

In this program, you will learn how to find the largest and smallest element of an array in Python. a = arr.array('i', [40, 30, 10, 90, 55]) Example: How to…

Continue Reading Python Program to find the largest and smallest element of an array

## Python Program to find the smallest element of an array

In this program, you will learn how to find the smallest element of an array in Python. a = arr.array('i', [40, 30, 10, 90, 55]) Example: How to find the…

Continue Reading Python Program to find the smallest element of an array