Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
convert numbers into list
#1
Hi,

I need help to convert the following numbers into a list.

156788
987652
567891
234567

the output should be as below:

[156788,987652,567891,234567]

Appreciate your help.

Thx in advance
Reply
#2
A helpful link on python list
What have you tried?
I welcome all feedback.
The only dumb question, is one that doesn't get asked.
My Github
How to post code using bbtags


Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How do I calculate a ratio from 2 numbers and return an equivalent list of about 1000 Pleiades 8 15,637 Jan-05-2024, 08:30 PM
Last Post: sgrey
  find random numbers that are = to the first 2 number of a list. Frankduc 23 3,198 Apr-05-2023, 07:36 PM
Last Post: Frankduc
  convert string to float in list jacklee26 6 1,898 Feb-13-2023, 01:14 AM
Last Post: jacklee26
  List of random numbers astral_travel 17 2,694 Dec-02-2022, 10:37 PM
Last Post: deanhystad
  convert a list to links Pir8Radio 3 1,096 Nov-28-2022, 01:52 PM
Last Post: Pir8Radio
  Remove numbers from a list menator01 4 1,322 Nov-13-2022, 01:27 AM
Last Post: menator01
  [split] why can't i create a list of numbers (ints) with random.randrange() astral_travel 7 1,508 Oct-23-2022, 11:13 PM
Last Post: Pedroski55
  convert this List Comprehensions to loop jacklee26 8 1,503 Oct-21-2022, 04:25 PM
Last Post: deanhystad
  Convert list to interger Clives 5 1,624 May-09-2022, 12:53 PM
Last Post: deanhystad
  Divide a number by numbers in a list. Wallen 7 8,021 Feb-12-2022, 01:51 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