Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
for loop
#1
Big Grin 
How to write code to this with for loop and without 2 for loops


X
XX
XXX
XXXX
XXXXX
XXXX
XXX
XX
X
Yoriz write Nov-21-2021, 05:34 PM:
Please post all code, output and errors (in their entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.
Reply
#2
https://python-forum.io/misc.php?action=help&hid=52 Wrote:Homework and No Effort Questions
This forum is focused on education. It exists to help people learn Python. We don’t exist to solve others’ problems.
...
Reply
#3
(Nov-21-2021, 05:07 PM)nadun Wrote: How to write code to this with for loop and without 2 for loops
Have you learned about the effect of abs() on negative numbers yet? Do you know that range() can use negative numbers? (hint hint)
Reply
#4
Do you have to use range?
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020