Python Forum
I came across a problem and I am stuck on it
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I came across a problem and I am stuck on it
#4
Start by solving the problem on pencil and paper. Don't think about dictionaries or python. Carefully document the steps taken to solve the problem without ambiguity. Is your solution general? If you changed the inputs does it still calculate the correct answer? If so you have just created an algorithm. Congrats!

Once you have the algorithm writing a program is mostly finding the right syntax and data structures. Programming is far simpler than coming up with the algorithm, and coming up with an algorithm is simpler if you aren't thinking about how you would write the program. There will come a time when you'll see multiple algorithms for solving a problem and programming language will affect which algorithm you choose to implement, but that time is in your future.
Reply


Messages In This Thread
RE: I came across a problem and I am stuck on it - by deanhystad - Mar-25-2020, 07:45 PM

Forum Jump:

User Panel Messages

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