x = "abc123-file.mxd" # First 6 characters print x[0:6] >> abc123 # First 6 characters plus .mxd print x[0:6]+".mxd" >> abc123.mxd
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.