Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Question on dir() function
#1
I have the following code which uses dir() function.

Want to know why dir() function is used here.
[Image: Python-dir-Example-dir-Function-In-Python-Tutorial.png]


Question source: https://www.adaface.com/blog/python-inte...questions/
Larz60+ write Jan-16-2023, 08:23 PM:
Please post all code, output and errors (it it's entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.

Please use instead of images. Thank you

Attached Files

Thumbnail(s)
   
Reply


Messages In This Thread
Question on dir() function - by Soorya25 - Jan-16-2023, 11:55 AM
RE: Question on dir() function - by deanhystad - Jan-16-2023, 09:33 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Function not scriptable: Noob question kaega2 3 1,224 Aug-21-2022, 04:37 PM
Last Post: kaega2
  input function question barryjo 12 2,791 Jan-18-2022, 12:11 AM
Last Post: barryjo
  Question on None function in a machine learning algorithm Livingstone1337 1 2,381 Mar-17-2021, 10:12 PM
Last Post: supuflounder
  Question in python function problem saratha 1 1,489 Jul-08-2020, 04:56 PM
Last Post: jefsummers
  question about python3 print function jamie_01 5 2,711 May-25-2020, 09:58 AM
Last Post: pyzyx3qwerty
  Question about the groupby function new_to_python 7 3,295 Feb-09-2020, 07:52 AM
Last Post: perfringo
  Question about list and while function doug2019 6 2,796 Oct-12-2019, 03:07 AM
Last Post: doug2019
  Question on Join() function sduvvuri 2 2,795 Jun-02-2019, 03:55 PM
Last Post: perfringo
  question about list and remove function wmw12344 5 3,734 Mar-30-2018, 11:52 AM
Last Post: ljmetzger
  Basic input() function question rebubula76 2 3,267 Nov-27-2017, 08:12 AM
Last Post: buran

Forum Jump:

User Panel Messages

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