Sitemap
FAUN.dev() 🐾

We help developers learn and grow by keeping them up with what matters. 👉 www.faun.dev

Python — Part 02

2 min readJun 12, 2022

--

Press enter or click to view image in full size

Fundamental Data Types

  • int
  • float
  • bool
  • str
  • list
  • tuple
  • set
  • dict

Classes ( custom types )

  • your customed name for it

Specialized Data Types

codes
output

repl.it | Try it

More math functions in Python | Here

Variables

  • snake_case
  • Start with lowercase or underscore
  • Letters, numbers, underscore
  • Case sensitive
  • Don’t overwrite keywords

Keywords

Every programming language has special reserved words, or keywords, that have specific meanings and restrictions around how they should be used.

The above means cannot be used as variable names, function names, or any other identifiers.

more info |

Get Yen Wang’s stories in your inbox

Join Medium for free to get updates from this writer.

https://realpython.com/python-keywords/
https://www.w3schools.com/python/python_ref_keywords.asp

statement

var number = 50 / 5

expression

50 / 5

Augment assignment operator

some_value = 5
some_value -= 2
print(some_value)

--

--

Yen Wang
Yen Wang

Written by Yen Wang

Curious mind. Interested in both creative and exploitative sides. More about me | https://www.yenwang.dev/

FAUN.dev() 🐾
FAUN.dev() 🐾

Published in FAUN.dev() 🐾

We help developers learn and grow by keeping them up with what matters. 👉 www.faun.dev