menu
QAmmunity.org
Login
Register
My account
Edit my Profile
Private messages
My favorites
Register
Ask a Question
Questions
Unanswered
Tags
Categories
Ask a Question
Write a program that prints out a list of the integers from 1 to 20 and their squares. The output should look like this: 1-1 2-4 3-9 20-400
asked
Apr 2, 2023
15.9k
views
20
votes
Write a program that prints out a list of the integers from 1 to 20 and their
squares. The output should look like this:
1-1
2-4
3-9
20-400
Computers and Technology
college
Dan Gibson
asked
by
Dan Gibson
5.2k
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
11
votes
Answer:
for x in range(1,20):
print(f'{x}-{(x**2)}')
HellaMad
answered
Apr 8, 2023
by
HellaMad
5.3k
points
ask related question
comment
share this
0 Comments
Please
log in
or
register
to add a comment.
Ask a Question
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.
5.3m
questions
6.9m
answers
Other Questions
What is the first step you would take to create a table of authorities?
In Java a final class must be sub-classed before it. ?? True ?? False
HELP PLS TIME LIMIT HERE When should you contact your instructor if you experience problems or questions with your online course? A.After you talk to the lab instructor B.At the end of the day C.When you
To apply a style to a paragraph, the first step is to position the insertion point in the paragraph. True or False
What machine listens for HTTP requests to come in to a website’s domain?
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy
Search QAmmunity.org