About 6,130,000 results
Open links in new tab
  1. Python Program to Find Average of Two Numbers

    Python Average of Two Numbers. This Python program is the simplest and easiest way to calculate the average of 2 numbers. We will take two numbers while declaring the variables …

  2. finding the average using functions in python - Stack Overflow

    Oct 28, 2020 · you can find avg of any quantity numbers using it: # Python program to get average of a list def Average(lst): return sum(lst) / len(lst) # Number List lst = [15, 9, 55, 41, …

  3. Write a function to calculate the average of two numbers.(Python ...

    May 28, 2017 · When using numbers in python, always use input() other than raw input, to save yourselves from converting raw_iniput to an integer because the input command already takes …

  4. Python - Average of Two Numbers - Python Examples

    Calculate the average of two numbers in Python by finding their sum and dividing by 2. Learn the simple steps with example code and output.

  5. Program to find the average of two numbers - GeeksforGeeks

    Mar 14, 2024 · Given two Integers A and B, your task is to find the average of two numbers where the average is given by the formula: average(A, B) = (A+B)/2. Examples: Input: A=5, B=3 …

  6. Python Program to Find Average of Two Numbers - CodingBroz

    Then, we find the average of two numbers using the average formula: Average = Total sum / Total no. of terms. The average of two numbers is displayed on the screen using the print () …

  7. Calculate Average in Python - PythonForBeginners.com

    Dec 16, 2021 · Instead of using for loops, we can use built-in functions in python to calculate the average of elements in a given list. We can calculate the sum of all the elements of the list …

  8. statistics mean() functionPython | GeeksforGeeks

    Apr 23, 2025 · The mean() function from Python’s statistics module is used to calculate the average of a set of numeric values. It adds up all the values in a list and divides the total by …

  9. How to compute average of two numbers | LabEx

    The most fundamental technique for computing the average of two numbers involves simple arithmetic operations: def calculate_average(num1, num2): average = (num1 + num2) / 2 …

  10. Python Program to Find the Average Of Two Numbers

    Write a Python program to find the average of two numbers. This example accepts two integer numbers and calculates the sum and average.

  11. Some results have been removed
Refresh