In this video, Jennifer Harrison shows how to get help on functions in Python. Learn how to use the IDLE interactive help system.
- [Instructor] There are lots of functions…for working with strings that can be used…through ArcMap's field calculator or label expressions.…You can see them all listed here.…There's string functions,…there are also date functions and numeric functions.…You can see examples of the usage of some of these functions…by using this about calculating fields link…right here in the field calculator.…For example, if I need help on using the max function,…I can scroll down in the help…and I'll see an example of how that function is used.…
That's the first line of defense, sort of,…for getting help on your functions.…You can also get help in ArcGIS Desktop…by searching for Python functions.…But there's some help available in IDLE.…Some string functions are available in basic Python…and many others are in the string module.…So you may find it useful to import string…to get access to all of those functions.…Here's an example of the index function,…which returns a position of a character in a string.…
I use this for a lot of things.…
- Writing and running Python scripts in IDLE
- Making scripts flexible with variables
- Commenting scripts
- Manipulating string data
- Object-oriented programming in Python
- Creating loops
- Reading and writing text files
- Capturing input at runtime
- Documenting your scripts
Skill Level Beginner
1. Python for ArcGIS Basics
2. Strings, Numbers, and Variables
Work with numeric values5m 22s
3. Syntax Rules
4. Manipulating Strings
5. Object-Oriented Programming
6. Using Loops
7. Generate Log Files
8. Input at Run Time
9. Help Documents
Documenting a script1m 59s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.