Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[split] Class and methods
#1
This is my first post. I'm new to Python programming. I usually go on Windows, Linux, C#, and Java programming on coding. I wanted to take up Python because I thought it looked good. I would like to know few things about the structure of programming in Python. First I'll put the title on...

Java has java packages to work on. I'd like to know what about Python programming. Same idea?
#saving a file or loading a file
import arcpy
featureclass = "C:/data/county.gdb/hospital"
field = "Zip"

valueList = []
rows = arcpy.da.SearchCursor(featureclass, [field])
for row in rows:
    valueList.append(row[0])

uniqueSet = set(valueList)
uniqueList = list(uniqueSet)
uniqueList.sort()

print(uniqueList)
Programs are like instructions or rules. Learning it gets us closer to a solution. Desired outcome. Computer talk.
Reply


Messages In This Thread
[split] Class and methods - by ebn852_pan - May-12-2024, 02:25 AM
RE: [split] Class and methods - by Larz60+ - May-12-2024, 07:58 AM
RE: [split] Class and methods - by Gribouillis - May-12-2024, 08:07 AM
RE: [split] Class and methods - by ebn852_pan - May-15-2024, 06:35 AM
RE: [split] Class and methods - by ebn852_pan - May-19-2024, 11:24 PM
RE: [split] Class and methods - by deanhystad - May-20-2024, 12:01 AM
RE: [split] Class and methods - by ebn852_pan - May-20-2024, 04:07 AM
RE: [split] Class and methods - by ebn852_pan - May-20-2024, 06:37 PM
RE: [split] Class and methods - by LauraB - May-20-2024, 06:46 PM
RE: [split] Class and methods - by ebn852_pan - May-20-2024, 08:46 PM
RE: [split] Class and methods - by ebn852_pan - May-23-2024, 07:10 PM
RE: [split] Class and methods - by deanhystad - May-23-2024, 07:31 PM
RE: [split] Class and methods - by ebn852_pan - May-23-2024, 08:04 PM
RE: [split] Class and methods - by deanhystad - May-23-2024, 08:39 PM
RE: [split] Class and methods - by ebn852_pan - May-23-2024, 07:43 PM
RE: [split] Class and methods - by ebn852_pan - May-23-2024, 11:57 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Class and methods Saida2024 2 401 May-13-2024, 04:04 AM
Last Post: deanhystad
  Class test : good way to split methods into several files paul18fr 4 700 Jan-30-2024, 11:46 AM
Last Post: Pedroski55
  [split] Class takes no arguments bily071 2 784 Oct-23-2023, 03:59 PM
Last Post: deanhystad
  Structuring a large class: privite vs public methods 6hearts 3 1,285 May-05-2023, 10:06 AM
Last Post: Gribouillis
  access share attributed among several class methods drSlump 0 1,147 Nov-18-2021, 03:02 PM
Last Post: drSlump
  a function common to methods of a class Skaperen 7 2,875 Oct-04-2021, 07:07 PM
Last Post: Skaperen
  Listing All Methods Of Associated With A Class JoeDainton123 3 2,480 May-10-2021, 01:46 AM
Last Post: deanhystad
  too many methods in class - redesign idea? Phaze90 3 2,650 Mar-05-2021, 09:01 PM
Last Post: deanhystad
  Special Methods in Class Nikhil 3 2,492 Mar-04-2021, 06:25 PM
Last Post: Nikhil
  cant able to make methods interact with each other in the class jagasrik 2 1,942 Sep-16-2020, 06:52 PM
Last Post: deanhystad

Forum Jump:

User Panel Messages

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