Python Forum
How to convert boolean "True" to custom string?
Thread Rating:
  • 1 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to convert boolean "True" to custom string?
#2
Store the items in a list or dictionary. Use the expressions you've got to generate the appropriate index or key (remember, booleans are a type of integer, True = 1, False = 0).
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Messages In This Thread
RE: How to convert boolean "True" to custom string? - by ichabod801 - Oct-01-2017, 01:41 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Convert multiple decimal numbers in string to floats Katy8 6 3,673 Aug-16-2020, 06:06 PM
Last Post: Katy8
  Error could not convert string to float: deadendstreet 4 5,514 Oct-02-2019, 05:49 PM
Last Post: ichabod801
  how to convert list into string Shevach 3 2,687 May-14-2019, 09:51 AM
Last Post: perfringo
  Convert string to a specific number of bytes artblinked 1 2,482 Mar-28-2019, 08:43 PM
Last Post: Larz60+
  ValueError: could not convert string to float: 'Pencil' Balakay97 3 5,993 Mar-08-2018, 07:30 PM
Last Post: sparkz_alot

Forum Jump:

User Panel Messages

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