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...
User Profile
Collapse
-
Write a conditional branching script
-
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") -
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...
No activity results to display
Show More