Netbyzz

#B038

Python :

#CODE = #B038
# Integer
integer_example = 10
print(f"Integer: {integer_example}, Type: {type(integer_example)}")

# Long (Note: In Python 3, int and long have been unified into a single int type)
long_example = 1000000000000000000
print(f"Long: {long_example}, Type: {type(long_example)}")

# Float
float_example = 10.5
print(f"Float: {float_example}, Type: {type(float_example)}")

# Bool
bool_example = True
print(f"Bool: {bool_example}, Type: {type(bool_example)}")

# String
string_example = "Hello, World!"
print(f"String: '{string_example}', Type: {type(string_example)}")

# Tuple
tuple_example = (1, 2, 3)
print(f"Tuple: {tuple_example}, Type: {type(tuple_example)}")

# List
list_example = [1, 2, 3, 4, 5]
print(f"List: {list_example}, Type: {type(list_example)}")

# Dictionary
dictionary_example = {"key1": "value1", "key2": "value2"}
print(f"Dictionary: {dictionary_example}, Type: {type(dictionary_example)}")

# Set
set_example = {1, 2, 3, 4, 5}
print(f"Set: {set_example}, Type: {type(set_example)}")
 

Source Code