Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
basic def / if question
#2
A table is a class, and as such it has methods (method = function belonging to a class, if you haven't touched OOP part of the story yet, you will understand very well when you get there), such as "column".
If nacho_table wasn't a table, and thus not have "column" method, you would get an error.
This has probably happened to you before, if you tried to do arithmetic operations on "non-compatible" operands, or used some function on a data type, for which it isn't defined.
Reply


Messages In This Thread
basic def / if question - by tryingtolearnpython - Jun-15-2018, 05:13 AM
RE: basic def / if question - by j.crater - Jun-16-2018, 08:58 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Basic Coding Question: Exit Program Command? RockBlok 3 747 Nov-19-2023, 06:31 PM
Last Post: deanhystad
  [solved] Basic question on list matchiing paul18fr 7 2,094 May-02-2022, 01:03 PM
Last Post: DeaD_EyE
  Very basic calculator question BoudewijnFunke 4 2,094 Dec-10-2021, 10:39 AM
Last Post: BoudewijnFunke
  basic question isinstance tames 5 3,018 Nov-23-2020, 07:20 AM
Last Post: tames
  basic question about tuples and immutability sudonym3 6 3,130 Oct-18-2020, 05:11 PM
Last Post: sudonym3
  Basic Pyhton for Rhino 6 question about variables SaeedSH 1 2,247 Jan-28-2020, 04:33 AM
Last Post: Larz60+
  Basic coding question with Python Than999 3 3,256 Jul-17-2019, 04:36 PM
Last Post: jefsummers
  basic question???????? cemdede 2 2,454 Jan-18-2019, 03:05 AM
Last Post: ntd9395
  basic plotting question Devilish 0 1,957 Dec-27-2018, 10:35 PM
Last Post: Devilish
  Basic Python question vmenon 2 2,478 Mar-17-2018, 06:35 PM
Last Post: vmenon

Forum Jump:

User Panel Messages

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