Join the conversation

String: A sequence of characters enclosed in quotes. Integer: A whole number, positive or negative, without decimals. Tuple: An immutable sequence of elements, defined by parentheses (1, 2, 3, 4) Dictionary: A collection of key-value pairs, defined by curly braces. { "name": "Bob", "age": 10, "city": "California" } Set: An unordered collection of unique elements, defined by curly braces. {1, 2, 3, 4, 5}
Reply

Completed
Reply

Day 5 Done ...
Reply

Fantastic
Reply

nice
Reply

Learning
Reply

print(type(x))
print(type(y))
print(type(r))
print(type(c))
print(type(f))
Reply

dilep main " coma nahi dala
Reply

# String: A sequence of characters enclosed in quotes.
string_example = "Hello, World!"# Integer: A whole number, positive or negative, without decimals.
integer_example = 42# Tuple: An immutable sequence of elements, defined by parentheses.
tuple_example = (1, 2, 3, 4)# Dictionary: A collection of key-value pairs, defined by curly braces.
dictionary_example = {
"name": "Alice",
"age": 30,
"city": "New York"
}# Set: An unordered collection of unique elements, defined by curly braces.
set_example = {1, 2, 3, 4, 5}
Reply

Int: An integer, a whole number without a fractional part, such as 99, 100, 105
Float: A floating-point number, a number that includes a decimal point, such as 99.5, 100.0, 105.25
String: A sequence of characters enclosed in quotes, such as "hello", "123", "Python"
List of string: A collection of strings, enclosed in square brackets, such as ["apple", "banana", "cherry"]
Tuple: An ordered, immutable collection of elements, enclosed in parentheses, such as (1, 2, 3) or ("a", "b", "c")
Dictionary: A collection of key-value pairs, enclosed in curly braces, such as {"name": "Alice", "age": 25}
Set: An unordered collection of unique elements, enclosed in curly braces, such as {1, 2, 3} or {"apple", "banana", "cherry"}
Reply