Aiforkids
menu
search
person
Login using Google
Login
Register
search
brightness_auto
edit
Ask a Question
Aiforkids
All Activity
Questions
Unanswered
Tags
Categories
Ask a Question
Write a program that keep on accepting number from the user until user enters Zero. Display the sum and average of all the numbers.
← Prev Question
Next Question →
more_vert
by
aiforkids
(
19.4k
points)
in
Python
asked
Jan 7, 2022
1.4k
views
4
1
Topic
Python Programming
Type
Python Program
Class
10
python-program
python
thumb_up_off_alt
4
like
thumb_down_off_alt
0
dislike
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1
Answer
more_vert
by
shubham pandey
(
125
points)
answered
Apr 1
0
sum =
0
count =
-1
num =
None
while
num!=
0
:
num =
int
(
input
(
"Enter 0 to terminate, any other integer to continue: "
))
sum = sum + num
count +=
1
print
(
"the sum is"
, sum)
print
(
"the average is"
, sum/count)
thumb_up_off_alt
0
like
thumb_down_off_alt
0
dislike
Please
log in
or
register
to add a comment.
← Prev Question
Next Question →
Important Update -
Full Class 10th AI Lectures Playlist
Related questions
by
aiforkids
(
19.4k
points)
in
Python
asked
Jan 7, 2022
1.5k
views
Write a program to display sum of odd numbers and even numbers that fall between 12 and 37(including both numbers)
python-program
python
thumb_up_off_alt
3
like
thumb_down_off_alt
0
dislike
1
answer
by
aiforkids
(
19.4k
points)
in
Python
asked
Jan 7, 2022
303
views
Write a program to find the sum of the digits of a number accepted from user
python-program
python
thumb_up_off_alt
3
like
thumb_down_off_alt
0
dislike
1
answer
by
aiforkids
(
19.4k
points)
in
Python
asked
Jan 7, 2022
454
views
Write a program to print all prime numbers that fall between two numbers including both(accept two numbers from the user)
python-program
python
thumb_up_off_alt
2
like
thumb_down_off_alt
0
dislike
1
answer
by
aiforkids
(
19.4k
points)
in
Python
asked
Jan 7, 2022
471
views
Write a program to display product of the digits of a number accepted from the user
python-program
python
thumb_up_off_alt
3
like
thumb_down_off_alt
0
dislike
1
answer
by
aiforkids
(
19.4k
points)
in
Python
asked
Jan 7, 2022
1.6k
views
Write a program to display all the numbers which are divisible by 11 but not by 2 between 100 and 500.
python-program
python
thumb_up_off_alt
3
like
thumb_down_off_alt
0
dislike
0
answers
by
aiforkids
(
19.4k
points)
in
Python
asked
Jan 7, 2022
291
views
Accept 10 numbers from the user and display their average.
python-program
python
thumb_up_off_alt
3
like
thumb_down_off_alt
0
dislike
1
answer
by
aiforkids
(
19.4k
points)
in
Python
asked
Jan 7, 2022
574
views
Write a program to print table of a number accepted from user
python-program
python
thumb_up_off_alt
3
like
thumb_down_off_alt
0
dislike
1
answer
by
aiforkids
(
19.4k
points)
in
Python
asked
Jan 7, 2022
274
views
Write a program to accept decimal number and display its binary number.
python-program
python
thumb_up_off_alt
3
like
thumb_down_off_alt
0
dislike
0
answers
by
aiforkids
(
19.4k
points)
in
Python
asked
Jan 7, 2022
2.1k
views
Write a program to print numbers from 1 to 20 except multiple of 2 & 3.
python-program
python
thumb_up_off_alt
3
like
thumb_down_off_alt
0
dislike
1
answer
by
aiforkids
(
19.4k
points)
in
Python
asked
Jan 7, 2022
234
views
Write a program to find the factorial of a number
python-program
python
thumb_up_off_alt
2
like
thumb_down_off_alt
0
dislike
1
answer
Welcome to Aiforkids, where you can ask questions and receive answers from other members of the community.
AI 2024 Class 10 Board Exams mein
100% laane
ka plan
OPEN NOW
Class 10 Complete One Shot AI Lectures at -
Youtube
1.5k
questions
1.4k
answers
4
comments
14.1k
users
Categories
All categories
Artificial Intelligence
(1.2k)
Information Technology
(35)
Information Practices (IP)
(60)
Computer Appilcations
(119)
Data Science
(1)
Maths for AI
(3)
Programming
(44)
Web Dev
(0)
Python
(42)
API
(0)
Libraries / Frameworks
(0)
Other Programming
(2)
Forums
(5)
Data Structure and Algorithms
(0)
Related questions
Write a program to display sum of odd numbers and even numbers that fall between 12 and 37(including both numbers)
Write a program to find the sum of the digits of a number accepted from user
Write a program to print all prime numbers that fall between two numbers including both(accept two numbers from the user)
Write a program to display product of the digits of a number accepted from the user
Write a program to display all the numbers which are divisible by 11 but not by 2 between 100 and 500.
Accept 10 numbers from the user and display their average.
Write a program to print table of a number accepted from user
Write a program to accept decimal number and display its binary number.
Write a program to print numbers from 1 to 20 except multiple of 2 & 3.
Write a program to find the factorial of a number
...