Python Forum
converting array to and from string in python 3.7.2
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
converting array to and from string in python 3.7.2
#6
Is there any reason why you use array and not list(common way in most cases)?
Usage of array look at this answer.
>>> lst = ['g','e','e','k']
>>> lst
['g', 'e', 'e', 'k']
>>> type(lst)
<class 'list'>
>>> 
>>> ''.join(lst)
'geek'
Reply


Messages In This Thread
RE: converting array to and from string in python 3.7.2 - by snippsat - Jul-03-2019, 01:11 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Converting python to FileMaker DWolf 6 1,711 Sep-22-2022, 03:40 AM
Last Post: DWolf
  Converting '1a2b3c' string to Dictionary PythonNoobLvl1 6 1,885 May-13-2022, 03:44 PM
Last Post: deanhystad
  Need help converting string to int dedesssse 7 2,696 Jul-07-2021, 09:32 PM
Last Post: deanhystad
  Beautify dictionary without converting to string. sharoon 6 3,394 Apr-11-2021, 08:32 AM
Last Post: buran
  Convert String of an int array to a Numpy array of ints mdsousa 5 5,712 Apr-08-2021, 08:00 PM
Last Post: mdsousa
  Indexing [::-1] to Reverse ALL 2D Array Rows, ALL 3D, 4D Array Columns & Rows Python Jeremy7 8 7,163 Mar-02-2021, 01:54 AM
Last Post: Jeremy7
  how to deal with problem of converting string to int usthbstar 1 1,984 Jan-05-2021, 01:33 PM
Last Post: perfringo
  Converting string to hex triplet menator01 4 4,346 Aug-03-2020, 01:00 PM
Last Post: deanhystad
  Create array from string steve87bg 4 3,189 Jul-13-2020, 07:55 PM
Last Post: jefsummers
  Make an array of string number in a List polantas 5 3,126 May-27-2020, 07:18 AM
Last Post: buran

Forum Jump:

User Panel Messages

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