Python Forum
can you call a function from a list?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
can you call a function from a list?
#17
(Nov-09-2020, 10:22 PM)deanhystad Wrote: I think I finally understand what it is you want to do. You want to have a thing that is associated with a function. You would like to be able to say:
ruby = Gem('Ruby')
ruby.draw()
print(ruby.name)
Output:
____ /\/\/\ \ / \ / \/ Ruby
In other words, you want a Class. Have you studied classes in your Python course?

Yes, and i really like your diamond btw

No, we have not gotten into classes. We are currently learning functions.
Reply


Messages In This Thread
can you call a function from a list? - by KEYS - Nov-09-2020, 12:31 AM
RE: can you call a function from a list? - by KEYS - Nov-09-2020, 02:32 AM
RE: can you call a function from a list? - by KEYS - Nov-09-2020, 05:19 AM
RE: can you call a function from a list? - by buran - Nov-09-2020, 05:27 AM
RE: can you call a function from a list? - by KEYS - Nov-09-2020, 09:16 PM
RE: can you call a function from a list? - by KEYS - Nov-09-2020, 05:57 PM
RE: can you call a function from a list? - by KEYS - Nov-09-2020, 05:53 PM
RE: can you call a function from a list? - by KEYS - Nov-09-2020, 09:09 PM
RE: can you call a function from a list? - by buran - Nov-09-2020, 09:35 PM
RE: can you call a function from a list? - by KEYS - Nov-10-2020, 12:27 AM
RE: can you call a function from a list? - by KEYS - Nov-10-2020, 06:36 PM
RE: can you call a function from a list? - by buran - Nov-10-2020, 10:01 AM
RE: can you call a function from a list? - by KEYS - Nov-10-2020, 06:34 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Programming (identifier, literal and function call) ledangereux 5 5,062 May-05-2020, 12:37 PM
Last Post: gumi543
  Calling function-- how to call simply return value, not whole process juliabrushett 2 3,258 Jul-01-2018, 01:17 AM
Last Post: juliabrushett
  Function call Antonio_Gallardo 3 3,255 Dec-29-2017, 11:13 PM
Last Post: Larz60+
  Error is function call Oracle_Rahul 2 3,232 Sep-21-2017, 06:04 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

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