Sign up now
to enroll in courses, follow best educators, interact with the community and track your progress.
Enroll
56
Download
Python Basic Programs Lesson 1 (in Hindi)
407 plays

More
In this lesson I am going to teach how to calculate average of list elements and swapping of two variables.

Jitendra jangir
B.tech from CSE branch ,having more than 4 years teaching experience ,my courses will help you to understand different programming languages

U
Unacademy user
sir last me print function ke andar round(avg,2) me round aur 2 Kyo use hua h?
  1. Program 1 Python Program to Calculate the Average of Numbers in a Given List nFint (input ("Enter the number of elements to be inserted a- for i in range (0,n)? elem-int (input ("Enter a.append (elem) element: ")) avg-sum(a)/n


  2. Program 1 Python Program to Calculate the Average of Numbers in a Given List print("Average of elements in the list", round (avg,2))aoc


  3. Program Python Program to Exchange the Values of Two Numbers Without Using a Temporary Variable a-int (input ("Enter value of first variable:")) Ii b-int (input("Enter value of second variable:"))


  4. Program Python Program to Exchange the Values of Two Numbers Without Using a Temporary Variable a a+b print("a is:",a," b is: ",b)


  5. ThankS!