Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Looping and nested loops
#3
Sorry, I accidentally submitted it too early!

I need help on how to make the day and week print. I know that I need the program to run through each day and say "enter the amount of rain for Monday of week one: ", "Enter the amount of rain for Tuesday of week One" and so on but I can't figure out how to make the value actually appear in my print output.

I know that I will also need to use a counter for all the values to add up and use that to work out the averages, but I can hopefully fix that on my own!

I'm just not sure on the way I need to write it to make it run through each day and appear in the input question for the user.

Thanks!
Reply


Messages In This Thread
Looping and nested loops - by albry - Dec-20-2018, 10:52 AM
RE: Looping and nested loops - by buran - Dec-20-2018, 10:56 AM
RE: Looping and nested loops - by albry - Dec-20-2018, 11:16 AM
RE: Looping and nested loops - by buran - Dec-20-2018, 11:31 AM
RE: Looping and nested loops - by albry - Dec-20-2018, 12:02 PM
RE: Looping and nested loops - by buran - Dec-20-2018, 12:10 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  for loops break when I call the list I'm looping through Radical 4 913 Sep-18-2023, 07:52 AM
Last Post: buran
  reduce nested for-loops Phaze90 11 1,938 Mar-16-2023, 06:28 PM
Last Post: ndc85430
  Nested for loops: Iterating over columns of a DataFrame to plot on subplots dm222 0 1,727 Aug-19-2022, 11:07 AM
Last Post: dm222
  Nested for loops - help with iterating a variable outside of the main loop dm222 4 1,606 Aug-17-2022, 10:17 PM
Last Post: deanhystad
  breaking out of nested loops Skaperen 3 1,241 Jul-18-2022, 12:59 AM
Last Post: Skaperen
  Break out of nested loops muzikman 11 3,401 Sep-18-2021, 12:59 PM
Last Post: muzikman
  Looping through nested elements and updating the original list Alex_James 3 2,147 Aug-19-2021, 12:05 PM
Last Post: Alex_James
  How to break out of nested loops pace 11 5,423 Mar-03-2021, 06:25 PM
Last Post: pace
  Nested for Loops sammay 1 8,846 Jan-09-2021, 06:48 PM
Last Post: deanhystad
  How to make this function general to create binary numbers? (many nested for loops) dospina 4 4,450 Jun-24-2020, 04:05 AM
Last Post: deanhystad

Forum Jump:

User Panel Messages

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