Python Forum
function 'return' and file content into a list
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
function 'return' and file content into a list
#2
for one, when you call get_names, you need to assign the return value to a variable something like:
users = get_names()
Users will be a list with same contents as that created in function
Reply


Messages In This Thread
RE: function 'return' and file content into a list - by Larz60+ - Jul-06-2018, 01:17 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  what to return for an empty list Skaperen 2 174 May-24-2024, 05:17 PM
Last Post: Skaperen
  How do I calculate a ratio from 2 numbers and return an equivalent list of about 1000 Pleiades 8 15,915 Jan-05-2024, 08:30 PM
Last Post: sgrey
  [solved] list content check paul18fr 6 859 Jan-04-2024, 11:32 AM
Last Post: deanhystad
  nested function return MHGhonaim 2 698 Oct-02-2023, 09:21 AM
Last Post: deanhystad
  return next item each time a function is executed User3000 19 2,523 Aug-06-2023, 02:29 PM
Last Post: deanhystad
  function return boolean based on GPIO pin reading caslor 2 1,265 Feb-04-2023, 12:30 PM
Last Post: caslor
  Extracting Specific Lines from text file based on content. jokerfmj 8 3,184 Mar-28-2022, 03:38 PM
Last Post: snippsat
  Need to parse a list of boolean columns inside a list and return true values Python84 4 2,197 Jan-09-2022, 02:39 AM
Last Post: Python84
  return vs. print in nested function example Mark17 4 1,848 Jan-04-2022, 06:02 PM
Last Post: jefsummers
Thumbs Up Parsing a YAML file without changing the string content..?, Flask - solved. SpongeB0B 2 2,336 Aug-05-2021, 08:02 AM
Last Post: SpongeB0B

Forum Jump:

User Panel Messages

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