Python Forum
Assign dynamic values to Variables
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Assign dynamic values to Variables
#1
Hi,

In python I am trying to assign username and password(with out hard coding). NameVALUE and PasswordVALUE variables have values

paramvalue = "{\"username\": \"NameVALUE",\"password\": \"PasswordVALUE\"}"  
When I print paramvalue I am getting out put like
Output:
{\"username\": \"NameVALUE",\"password\": \"PasswordVALUE\"}
expected output:
Output:
{\"username\": \"Srikanth",\"password\": \"Welcome\"}
Please help.Thank you in advance.

Regards
Srikanth
Reply


Messages In This Thread
Assign dynamic values to Variables - by srikanthpython - Jun-06-2020, 01:24 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 324 Feb-17-2024, 05:53 PM
Last Post: klllmmm
  Create X Number of Variables and Assign Data RockBlok 8 1,015 Nov-14-2023, 08:46 AM
Last Post: perfringo
  Creating a loop with dynamic variables instead of hardcoded values FugaziRocks 3 1,537 Jul-27-2022, 08:50 PM
Last Post: rob101
  Create array of values from 2 variables paulo79 1 1,117 Apr-19-2022, 08:28 PM
Last Post: deanhystad
  How can I assign "multiple variables" to a single "value"? Psycpus 2 1,888 Oct-04-2021, 03:29 AM
Last Post: deanhystad
  variables vcnt, ocnt, and mcnt adding previous values and not resetting to 0 archanut 2 1,964 Feb-12-2021, 06:56 PM
Last Post: deanhystad
  Giving all possible values to four different variables quest_ 7 3,048 Jan-18-2021, 05:18 AM
Last Post: deanhystad
  Variables being overridden to initial values. p2bc 6 2,658 Oct-10-2020, 09:03 PM
Last Post: p2bc
  Print variable values from a list of variables xnightwingx 3 2,662 Sep-01-2020, 02:56 PM
Last Post: deanhystad
  Create, assign and print variables in loop steven_tr 10 4,395 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