Python Forum
Can't figure out how to write the correct functions for my pseudocode
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can't figure out how to write the correct functions for my pseudocode
#3
You're getting syntax errors because you are running pseudocode, not Python code. You have several for loops like this:

for ('reservations') input[0]:
That's not how for loops are written in python. And looking at the pseudocode, that is probably meant to be a conditional (if statement) rather than a loop.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Messages In This Thread
RE: Can't figure out how to write the correct functions for my pseudocode - by ichabod801 - Jul-30-2018, 12:30 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Converting pseudocode to Python qwertyK 3 23,717 Oct-24-2017, 01:41 PM
Last Post: qwertyK
  Problem writing code with my pseudocode MattWilk97 1 2,896 Aug-29-2017, 01:54 AM
Last Post: ichabod801

Forum Jump:

User Panel Messages

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