Python Forum
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
number problem
#10
You've just taken code that someone else wrote for you and that doesn't conform to the requirements. Why don't you start by

1. Reading the requirements
2. Working out how to break the task down into small steps
3. Working out how to implement each of those small steps

You've been given some example data to work with, so as mentioned above, why don't you hard code it in your program and use that to get you going? This is pretty much what I'd do in the real world - take my example, write a test case including it and work on getting that to pass (I'm not suggesting you write tests here, because that might be out of scope for you right now, but I'm more saying it to illustrate how we work).

Also, if you're unable to even break down relatively simple problems like this, I have no idea how you're going to try and build a web application, which is a much more complex problem.
Reply


Messages In This Thread
number problem - by jk91 - Apr-28-2020, 05:38 PM
RE: number problem - by micseydel - Apr-28-2020, 05:39 PM
RE: number problem - by deanhystad - Apr-28-2020, 06:34 PM
RE: number problem - by perfringo - Apr-29-2020, 05:14 AM
RE: number problem - by Shahmadhur13 - Apr-29-2020, 05:27 AM
RE: number problem - by Shahmadhur13 - Apr-30-2020, 09:09 AM
RE: number problem - by Shahmadhur13 - May-03-2020, 02:33 PM
RE: number problem - by jk91 - May-03-2020, 08:05 AM
RE: number problem - by ndc85430 - May-03-2020, 08:08 AM
RE: number problem - by jk91 - May-03-2020, 09:28 AM
RE: number problem - by ndc85430 - May-03-2020, 01:07 PM
RE: number problem - by deanhystad - May-03-2020, 08:25 PM
RE: number problem - by jk91 - May-07-2020, 05:07 PM
RE: number problem - by ndc85430 - May-08-2020, 07:02 AM
RE: number problem - by jk91 - May-08-2020, 07:14 AM
RE: number problem - by buran - May-08-2020, 07:22 AM
RE: number problem - by ndc85430 - May-08-2020, 07:25 AM
RE: number problem - by jk91 - May-16-2020, 07:52 AM
RE: number problem - by ndc85430 - May-16-2020, 08:37 AM
RE: number problem - by jk91 - May-16-2020, 08:58 AM
RE: number problem - by jk91 - May-30-2020, 09:46 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Problem with number of rows containing null values PythonSpeaker 3 2,304 Nov-23-2019, 06:53 PM
Last Post: ibreeden

Forum Jump:

User Panel Messages

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