Please enable JavaScript.
Coggle requires JavaScript to display documents.
Python Basics (datatypes (immutable (numeric (int (x = 20), float (x = 20…
Python Basics
mutable
list
x = [“apple”, “banana”, “cherry”]
dictionary (dict)
x = {“name” : “John”, “age” : 36}
set
x = {“apple”, “banana”, “cherry”}
-
-
-
tuple
x = (“apple”, “banana”, “cherry”)
functions
lamda
fn = lambda x,y : 2/x + 5/y
user-defined
def sum(a, b): return a+b
-