loading...

Charming the Python: Builtins and Variables

twitter logo github logo Updated on ・1 min read

30 Days of Python (20 Part Series)

1) Charming the Python: the basic basics 2) Charming the Python: Builtins and Variables 3 ... 18 3) Charming the Python: Boolean & Operators 4) Charming the Python: Strings 5) Charming the Python: Lists 6) Charming the Python: Tuples 7) Charming the Python: Sets 8) Charming the Python: Dictionaries 9) Charming the Python: Data Structures 10) Charming the Python: Conditionals 11) Charming the Python: Loops 12) Charming the Python: Functions 13) Charming the Python: Modules 14) Charming the Python: List Comprehension 15) Charm the Python: Lambdas 16) Charming the Python: Error Types 17) Charming the Python: datetime 18) Charming the Python: Exception Handling 19) Charming the Python: RegEx 20) Charming the Python: File Handling

If coding tutorials with math examples are the bane of your existence, keep reading. This series uses relatable examples like dogs and cats.


Builtin Functions

print("words")
>>> words
min(10, 20, 30, 40)
>>> 10
max(10, 20, 30, 40)
>>> 40
sum([10, 20, 30, 40])
>>> 100

Variables

  • must start with a letter or underscore
  • cannot start with a number
  • only contain letters, numbers, and underscores
  • case-sensitive

Series based on

twitter logo DISCUSS
Classic DEV Post from Dec 15 '19

VS Code + GitHub Gist = Developer Micro-Blogging (aka a "GistLog")

In a previous post, I introduced GistPad, a new VS Code extension that provides an in-editor scratchp...

Vicki (she/her) profile image