menu
QAmmunity.org
Login
Register
My account
Edit my Profile
Private messages
My favorites
Ask a Question
Questions
Unanswered
Tags
Categories
Ask a Question
using a for loop, write a program that prints out the decimal equivalents of 1/2, 1/3, 1/4,..., 1/10.
asked
Jul 1, 2017
26.4k
views
1
vote
using a for loop, write a program that prints out the decimal equivalents of 1/2, 1/3, 1/4,..., 1/10.
Computers and Technology
high-school
Ogbonna Vitalis
asked
by
Ogbonna Vitalis
8.0k
points
answer
comment
share this
share
0 Comments
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1
Answer
5
votes
In python:
##Specifies the range that the variable 'number' should change within
for number in range(2,10):
##Prints the decimal equivalent of each fraction
print(1 / number)
Scott Fines
answered
Jul 7, 2017
by
Scott Fines
7.6k
points
ask related question
comment
share this
0 Comments
Please
log in
or
register
to add a comment.
← Prev Question
Next Question →
Related questions
asked
May 21, 2019
87.0k
views
Using a for loop, write a program that prints out the decimal equivalents of 1/2, 1/3, 1/4,..., 1/10. I wrote as below : >>> x = [1/2.0, 1/3.0, 1/4.0, 1/5.0] >>> y = 0 >>> for i in x: ... y = y + 1 ...
Jon Vaughan
asked
May 21, 2019
by
Jon Vaughan
7.9k
points
Computers and Technology
high-school
1
answer
5
votes
87.0k
views
asked
May 14, 2017
161k
views
I want to write a program in Python which computes and. prints a table of Celsius temperatures and the Fahrenheit equivalents every. 10 degrees from 0C to 100C. I spent a lot of time on it and prepared
Oscar Benjamin
asked
May 14, 2017
by
Oscar Benjamin
8.4k
points
Computers and Technology
high-school
1
answer
3
votes
161k
views
Ask a Question
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.
9.5m
questions
12.2m
answers
Other Questions
“What does it mean when we “rework” copyrighted material?”
The book shows how to add and subtract binary and decimal numbers. However, other numbering systems are also very popular when dealing with computers. The octal (base 8) numbering system is one of these.
Seven basic internal components found in a computer tower
Please help me ! All you do is just put it it all in your own words ! Please this is for my reported card!i don't know how to put it in my own words because my English is not that good!
describe an advance in technology that makes life more enjoyable. what discoveries contribute to this technology?
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy
Search QAmmunity.org