Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python exercise
#3
I don't think you want the brackets around boxCorners, but it's unclear what input you are expecting. Clarifying that would be helpful.

Note that the return statement should be unindented one level. Otherwise it will only return a value for 'Box2'. Also, I don't see any different between the two calculations.I don't even see the need for np.array().
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Messages In This Thread
Python exercise - by janaraguz - Sep-22-2018, 08:30 PM
RE: Python exercise - by ichabod801 - Sep-22-2018, 08:37 PM
RE: Python exercise - by ichabod801 - Sep-22-2018, 08:43 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Python Exercise Vasanth0910 1 2,014 May-15-2020, 04:41 PM
Last Post: pyzyx3qwerty
  Python exercise HY2000 2 3,327 Nov-07-2019, 08:01 AM
Last Post: HY2000
  Simple exercise - how to write in python tomtom55 6 5,213 Sep-28-2017, 07:18 PM
Last Post: nilamo
  Python Exercise: Generate a two-dimensional array smbx33 4 11,185 Apr-22-2017, 11:51 PM
Last Post: smbx33

Forum Jump:

User Panel Messages

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