Python Forum
When I print a key from dict it prints it but when I try to assign it to a variable I
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
When I print a key from dict it prints it but when I try to assign it to a variable I
#4
Aaaand it turns out I am a stupid moron. It works, it just gets to the end of the data and gives an error as it is empty. I've managed to fix it by just adding a try - except statement. If someone is more interested, let me know.
Reply


Messages In This Thread
RE: When I print a key from dict it prints it but when I try to assign it to a variable I - by stefanvelikov - Nov-27-2020, 01:29 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  zfill prints extra et the end of a var tester_V 4 1,838 Mar-24-2023, 06:59 PM
Last Post: tester_V
  Print variable without '' and spaces arnonim 1 1,201 Jan-30-2023, 05:23 PM
Last Post: deanhystad
  Problem with print variable in print.cell (fpdf) muconi 0 1,103 Dec-25-2022, 02:24 PM
Last Post: muconi
  Remove a space between a string and variable in print sie 5 2,831 Jul-27-2022, 02:36 PM
Last Post: deanhystad
  Can you print a string variable to printer hammer 2 2,755 Apr-30-2022, 11:48 PM
Last Post: hammer
  Print variable between " paulo79 5 2,636 Mar-11-2022, 05:16 PM
Last Post: deanhystad
  variable prints without being declared. ClockPillow 2 2,504 Jul-11-2021, 12:13 AM
Last Post: ClockPillow
  Output prints Account.id at the end? LastStopDEVS 5 3,830 Dec-19-2020, 05:59 AM
Last Post: buran
  Try/Exept prints only ones tester_V 11 5,503 Nov-03-2020, 02:38 AM
Last Post: tester_V
  Print variable values from a list of variables xnightwingx 3 3,360 Sep-01-2020, 02:56 PM
Last Post: deanhystad

Forum Jump:

User Panel Messages

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