Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dictionary help
#4
(Jul-29-2019, 09:31 AM)SheeppOSU Wrote: You can also do the following
demonspawn = {
    'level': 1
}

demonspawn.update({
    'xpreward': round(demonspawn['level']*1.5),
    'str': round(demonspawn['level'] * 1.5)
})

This is exactly what I needed, Thank you.
Reply


Messages In This Thread
Dictionary help - by Tridium - Jul-29-2019, 08:13 AM
RE: Dictionary help - by DeaD_EyE - Jul-29-2019, 09:15 AM
RE: Dictionary help - by SheeppOSU - Jul-29-2019, 09:31 AM
RE: Dictionary help - by Tridium - Jul-29-2019, 09:41 AM

Forum Jump:

User Panel Messages

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