User Profile

Collapse

Profile Sidebar

Collapse
ncharman
ncharman
Last Activity: Nov 21 '08, 12:34 PM
Joined: Oct 7 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • ncharman
    started a topic Write a conditional branching script

    Write a conditional branching script

    How can I write a Python script that conditionally branches between two variables depending on the number of features in the feature class. If there are more than 10 features in the incoming feature class, we are going to create a new feature class in the dataset. Else, we are going to append the incoming features to an existing feature class. At this point, assume only polygon features, and load to a polygon feature class.

    **This...
    See more | Go to post

  • ncharman
    started a topic Working with Strings

    Working with Strings

    Hello all, I am new to python and in need of some aide. I am going through some Homework and am completely stumped and unable to find answers in any tutorials that are in plain enough english that I can understand.

    my code is so far as followed:
    Code:
    def GetFileExtension(fullFileName):
        print fullFileName[-4:]
        
    def GetBaseName(fullFileName):
        print fullFileName[:-4]
    
    GetFileExtension("C:/MyFolder/Docs/Notes.txt")
    ...
    See more | Go to post

  • ncharman
    started a topic Question regarding int

    Question regarding int

    x = input ("Number of Guests: ")
    y = input ("Number of beers: ")
    print "Full beers per person: " + str(float(y / x))
    print "Left over beers: " + str(y % x)
    print "Poured into keg and shared: " + str(int(y / x, 3)) +" beer per person"

    this is my current python code, i am attempting to get the poured into keg portion to display 3 decimal places but...
    See more | Go to post
No activity results to display
Show More
Working...