Python Forum

Full Version: for loop
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How to write code to this with for loop and without 2 for loops


X
XX
XXX
XXXX
XXXXX
XXXX
XXX
XX
X
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.
...
(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)
Do you have to use range?