CiscoDevNet / learning-labs-issues

Defects and bugs in learning lab content and project management
4 stars 0 forks source link

Sample code has leading space which leads to errors when copy/pasting => collab-spark-interfacing-with-rest #231

Closed ntruncik closed 4 years ago

ntruncik commented 4 years ago

From the Collab DNE track:

Lab: Generating Python Webex Teams API code using Postman Lab ID: collab-spark-interfacing-with-rest Page: Page 3 – Writing a Python Script

Sample code on this page has a leading space on each line, which when copy/pasted will break Python.

Ideally, the sample code should be updated to remove this leading space. This will create the least errors and confusion.

Alternately, add a short statement letting participants know.

e.g. Although typing the code out yourself is the best way to learn programming, if you choose to copy/paste from the DevNet Learning Lab then be careful that it may copy a space in front of some of the lines of code: Picture4 Picture5 You will need to delete those extra spaces after you Paste the code.

Removing the leading space would be the simplest solution and save valuable troubleshooting time.

https://developer.cisco.com/learning/devnet-express/devnet-express-cloud-collab-it-pro/automating-spark-itp/collab-spark-interfacing-with-rest/step/3

dstaudt commented 4 years ago

Can't see anything in the lab source that would cause this, it's lined up as best the tools will allow (perhaps a browser issue?) - perhaps it was fixed previously? Closing