Python Forum
Assign dynamic values to Variables
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Assign dynamic values to Variables
#2
If this is JSON, you could just use a dictionary (rather than a string) and produce a JSON string using the json module. If you really insist on using strings, then you can use a format string of course.
Reply


Messages In This Thread
RE: Assign dynamic values to Variables - by ndc85430 - Jun-06-2020, 01:29 PM
RE: Assign dynamic values to Variables - by GOTO10 - Jun-06-2020, 02:30 PM
RE: Assign dynamic values to Variables - by GOTO10 - Jun-06-2020, 02:59 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Get an average of the unique values of a column with group by condition and assign it klllmmm 0 2,001 Feb-17-2024, 05:53 PM
Last Post: klllmmm
  Create X Number of Variables and Assign Data RockBlok 8 3,987 Nov-14-2023, 08:46 AM
Last Post: perfringo
  Creating a loop with dynamic variables instead of hardcoded values FugaziRocks 3 2,511 Jul-27-2022, 08:50 PM
Last Post: rob101
  Create array of values from 2 variables paulo79 1 1,922 Apr-19-2022, 08:28 PM
Last Post: deanhystad
  How can I assign "multiple variables" to a single "value"? Psycpus 2 2,608 Oct-04-2021, 03:29 AM
Last Post: deanhystad
  variables vcnt, ocnt, and mcnt adding previous values and not resetting to 0 archanut 2 2,895 Feb-12-2021, 06:56 PM
Last Post: deanhystad
  Giving all possible values to four different variables quest_ 7 4,396 Jan-18-2021, 05:18 AM
Last Post: deanhystad
  Variables being overridden to initial values. p2bc 6 3,832 Oct-10-2020, 09:03 PM
Last Post: p2bc
  Print variable values from a list of variables xnightwingx 3 3,425 Sep-01-2020, 02:56 PM
Last Post: deanhystad
  Create, assign and print variables in loop steven_tr 10 6,522 May-28-2020, 04:26 PM
Last Post: ndc85430

Forum Jump:

User Panel Messages

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