Join the conversation

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

int stand for integer is a whole number (not a fractional number) that can be positive, negative, or zero. Examples of integers are: -5, 1, 5, 8, 97. A list of integers a collection of distinct types of values or items. The elements in the list are separated by using commas (,) and are surrounded by square brackets [] . For Example : (1,2,3,4 ). A float point number, is a positive or negative whole number with a decimal point. For example, 5.5, 0.25, and -103.342. String is a collection of alphabets, words or other characters. For example: "Hello World" List of String : First use square brackets [ and ] to create a list. Then place the list items inside the brackets separated by commas. For example: ["Hello world", "Codanics" ]. A tuple is an ordered sequence of elements of different data types, such as integer, float, string, list or even a tuple. A dictionaries are mutable data structures that allow you to store key-value pairs. SET can hold one or more of the values declared for its data type .
Reply

"int" mean integer = whole number
"float" mean floating point values = decimal numbers
Reply