Python Forum
Looping through a dictionary for every other value
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Looping through a dictionary for every other value
#16
return is a statement that is used in functions. You need to return something from a function if you want to assign that result to another variable, as you've just learned. There is plenty of resources, here is the official Python docs on functions ;)
Reply


Messages In This Thread
RE: Looping through a dictionary for every other value - by j.crater - Jan-25-2018, 07:12 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Looping to Create Nested Dictionary gngu2691 10 33,676 Jun-22-2018, 04:11 PM
Last Post: anickone

Forum Jump:

User Panel Messages

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