Python Forum
How to call the stored values
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to call the stored values
#7
You can use a dictionary directly.
Work with dictionaries in python is very important.

d_moves = {'a': 5, 'b': 3, 'c': 2, 'd': 2, 'e': 5, 'f': 3}
# To access a value of a key: d[key] = value
print(d_moves['a']) # <- prints 5
Reply


Messages In This Thread
How to call the stored values - by Dieselkaine - Jul-04-2018, 08:21 PM
RE: How to call the stored values - by ichabod801 - Jul-04-2018, 08:54 PM
RE: How to call the stored values - by gontajones - Jul-04-2018, 08:55 PM
RE: How to call the stored values - by Dieselkaine - Jul-04-2018, 09:19 PM
RE: How to call the stored values - by gontajones - Jul-04-2018, 09:53 PM
RE: How to call the stored values - by Dieselkaine - Jul-04-2018, 10:12 PM
RE: How to call the stored values - by gontajones - Jul-04-2018, 10:35 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  python call stored procedure mg24 2 1,092 Oct-18-2022, 02:19 AM
Last Post: mg24
  python call stored procedure with two parameter mg24 4 1,536 Sep-27-2022, 05:02 AM
Last Post: deanhystad
  How do loop over curl and 'put' different values in API call? onenessboy 0 1,231 Jun-05-2022, 05:24 AM
Last Post: onenessboy
  Values not updating for restful call boomramada 0 1,661 Mar-13-2021, 01:08 PM
Last Post: boomramada
  How to call the values at the end of a text string? Dieselkaine 2 2,973 Jul-02-2018, 08:47 PM
Last Post: Dieselkaine

Forum Jump:

User Panel Messages

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