Data types used in Python
Below are the examples, how you can set different kind of Data types in Python. Example Data Type x = "Hello World" str x = 20 int x = 20.5 float x = 1j complex x = ["apple", "banana", "cherry"] list x = ("apple", "banana", "cherry") tuple x = range(6) range x = {"name" : "John", "age" : 36} dict x = {"apple", "banana", "cherry"} set x = frozenset({"apple", "banana",...
0 Kommentare 0 Geteilt 0 Bewertungen
Gesponsert
Omaada - A global social and professionals networking platform https://www.omaada.com