DEV Community


Discussion on: Intro to Python Pt. #1

fronkan profile image
Fredrik Bengtsson

Hello! I noticed some typos in the python code:

  • The docstring uses tripple quotation marks, you only had 2 in the example
  • The if statement has a semi-colon instead of colon
  • The elif statement is missing the number to compare to (70) and a colon
  • The array example nums[99] = 100, which I suppose should have been stroke using the markdown syntax isn't as it is in a code block. It makes it a bit unclear what you mean.

Also, while you can use semi-colon when declaring the variables in the string example, they have no effect and is never used in python (unless you want to put multiple statements on the same line)

chase42 profile image
Chase Collins Author

Thank you! Appreciate the help!