-
-
Notifications
You must be signed in to change notification settings - Fork 313
Open
Labels
good first issueGood issue for first-time contributorsGood issue for first-time contributors
Description
I recently taught a demo of Episode 2: Short Introduction to Programming in Python
https://datacarpentry.org/python-ecology-lesson/01-short-introduction-to-Python/index.html
Under Introduction to Python built-in data types, comments are introduced but not yet explained:
Python
text = "Data Carpentry" # An example of a string
number = 42 # An example of an integer
pi_value = 3.1415 # An example of a float
I found myself explaining the # comments here, though they are explained a little further down in this section:
Python:
# A Python script file
# Comments in Python start with #
# The next line assigns the string "Data Carpentry" to the variable "text".
text = "Data Carpentry"
# The next line does nothing!
text
# The next line uses the print function to print out the value we assigned to "text"
print(text)
I was wondering if it may make sense to pull out some of the explanation and move to where comments are first introduced? Perhaps even just # Comments in Python start with #
and leave the rest, as it makes sense with the script discussion?
Thanks!
Metadata
Metadata
Assignees
Labels
good first issueGood issue for first-time contributorsGood issue for first-time contributors