Type() is used to identify a type of a variable. Types of variables Int a = 5 type(a) int Float b = 5.0 type(b) float Str c = 'Hello' type(c) str List list1 = [1, 2, 3, 4, 5] list2 = ['a', 'b', 'c', 'd', 'e'] print(type(list1)) print(type(list2))...
Markdown supported · ⌘↵ to post
No responses yet.