from dataclasses import dataclass


# adding __init__ and __repr__
@dataclass
class Number:
    val: int
    count: int = 0  # default value


# same as above
class NumberTwo:
    def __init__(self, val):
        super().__init__()
        self.val = val

    def __repr__(self) -> str:
        return super().__repr__()


n = Number(val=1, count=2)

print(n.val)
print(n)

n = NumberTwo(1)

print(n.val)
print(n)

869423ca5d9b8685eab1773e7af301bac4df704e
<mask token>


@dataclass
class Number:
    val: int
    count: int = 0


class NumberTwo:

    def __init__(self, val):
        super().__init__()
        self.val = val

    def __repr__(self) ->str:
        return super().__repr__()


<mask token>

<mask token>


@dataclass
class Number:
    val: int
    count: int = 0


class NumberTwo:

    def __init__(self, val):
        super().__init__()
        self.val = val

    def __repr__(self) ->str:
        return super().__repr__()


<mask token>
print(n.val)
print(n)
<mask token>
print(n.val)
print(n)

<mask token>


@dataclass
class Number:
    val: int
    count: int = 0


class NumberTwo:

    def __init__(self, val):
        super().__init__()
        self.val = val

    def __repr__(self) ->str:
        return super().__repr__()


n = Number(val=1, count=2)
print(n.val)
print(n)
n = NumberTwo(1)
print(n.val)
print(n)

from dataclasses import dataclass


@dataclass
class Number:
    val: int
    count: int = 0


class NumberTwo:

    def __init__(self, val):
        super().__init__()
        self.val = val

    def __repr__(self) ->str:
        return super().__repr__()


n = Number(val=1, count=2)
print(n.val)
print(n)
n = NumberTwo(1)
print(n.val)
print(n)

from dataclasses import dataclass


# adding __init__ and __repr__
@dataclass
class Number:
    val: int
    count: int = 0  # default value


# same as above
class NumberTwo:
    def __init__(self, val):
        super().__init__()
        self.val = val

    def __repr__(self) -> str:
        return super().__repr__()


n = Number(val=1, count=2)

print(n.val)
print(n)

n = NumberTwo(1)

print(n.val)
print(n)
