Python Forum
Union of dictionaries (taking max value on collision)
Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Union of dictionaries (taking max value on collision)
#6
You need to actually try to run the code you are providing or this process isn't going to work.
  File "arghlebargle.py", line 1
    dicA=['A':a,'B':b,'C':c,'D':d]
             ^
SyntaxError: invalid syntax
Dictionaries are declared with {} not []
Reply


Messages In This Thread
RE: need help - by metulburr - Jan-17-2018, 08:30 PM
RE: need help - by meee - Jan-17-2018, 08:43 PM
RE: need help - by Gribouillis - Jan-17-2018, 08:56 PM
RE: need help - by meee - Jan-17-2018, 09:11 PM
RE: need help - by Mekire - Jan-17-2018, 09:14 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Star I was making code for collision for my character izmamonke 2 2,095 Aug-06-2021, 04:30 PM
Last Post: izmamonke
  Inheritance vs Union gserranowong 3 2,254 Jun-29-2021, 06:13 PM
Last Post: gserranowong
  SOLVED - Collision detection - TURTLE OuateDePhoque 9 11,407 Nov-18-2020, 06:29 PM
Last Post: OuateDePhoque
  ImportError: cannot import name 'Union' from '_ctypes' (unknown location) ciuffoly 15 10,446 Oct-09-2020, 06:58 AM
Last Post: ciuffoly
  bouncing ball with variable collision points (in time) Zhaleh 1 2,386 Jul-24-2020, 02:54 PM
Last Post: Marbelous
  Lists union and intersecion arbiel 5 2,854 Mar-28-2020, 05:57 AM
Last Post: buran
  Player object wont recognize collision with other objects. Jan_97 3 2,725 Dec-22-2019, 04:08 PM
Last Post: joe_momma
  Collision function problem jtstewart95 2 2,770 May-02-2018, 11:44 PM
Last Post: scidam
  Need help figuring out Sprite.Group Collision code PySam 3 3,384 Sep-15-2017, 03:00 AM
Last Post: PySam

Forum Jump:

User Panel Messages

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