Python Forum
Basic Coding Slays College Girl
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Basic Coding Slays College Girl
#4
(Sep-14-2017, 09:12 AM)Larz60+ Wrote: We will not write it for you.
Here's some Pseudo code to help:
  • Begin function
  • Declare constant: loss_per_month = 4
  • Enter starting weight
  • Create empty list to hold weights hint: weights = []
  • Ask Starting weight and save in cell 0 of list
  • Iterate through loop 6 times, start at 1, continue through 6
  • weights[index] = weights[index-1] - loss_per_month
  • finish loop
  • display contents of loop

Thank you for at least doing this. Unfortunately, I can't remember how to do lists for the life of me. I've gone through my textbook in the chapters we've covered and couldn't find anything about it and I've been googling for help online and haven't found any clear answer on how to do it. At this rate, my homework for this class will never be done.
Reply


Messages In This Thread
Basic Coding Slays College Girl - by AnjyilLee - Sep-14-2017, 08:41 AM
RE: Basic Coding Slays College Girl - by buran - Sep-14-2017, 09:01 AM
RE: Basic Coding Slays College Girl - by Larz60+ - Sep-14-2017, 09:12 AM
RE: Basic Coding Slays College Girl - by AnjyilLee - Sep-14-2017, 10:37 PM
RE: Basic Coding Slays College Girl - by Larz60+ - Sep-14-2017, 11:50 PM
RE: Basic Coding Slays College Girl - by ichabod801 - Sep-15-2017, 01:19 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Checking my basic understanding of coding dilans94 3 2,607 Jan-07-2019, 04:21 PM
Last Post: nilamo
  I need help on a basic coding question Presssure 1 4,297 May-23-2018, 05:12 AM
Last Post: micseydel

Forum Jump:

User Panel Messages

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