From the course: Learning ArcGIS Python Scripting
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Comments and pseudocode - ArcGIS Pro Tutorial
From the course: Learning ArcGIS Python Scripting
Comments and pseudocode
- [Instructor] Since you're taking this course, you're probably very new to scripting. And the code you write in this course isn't going to be that complex, but as you get more and more experience, your code will get more and more complex and exciting and powerful. It's good to go ahead right now and get in the habit of properly planning out your scripts and documenting them as you write them. If you already know how to use comments in Python, then you can skip this video and move on to other parts of the course. You can put some notes into a script to remind yourself and others what the script is doing. These notes are added as comments. Now, what I'm going to show you right now is how to add comments that will stay in the script. I mean, they'll be exported with the script if you choose to export them from Notebooks. If your code is never going to leave Notebooks, then you can document it right in the notebook with those markdown cells that we talked about earlier. If you want to…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.