top of page
Search

PYTHON CODING

  • Writer: waclaw_koscielniak
    waclaw_koscielniak
  • 1 day ago
  • 1 min read

from dataclasses import dataclass

@dataclass

class Point:

x: int

y: int = 0

p = Point(5)

print(p)


[Running] python3 -u "/Users/name/test/test135.py"

Point(x=5, y=0)

[Done] exited with code=0 in 0.079 seconds



Try to run it.
Try to run it.














 
 
 

1 Comment


Guest
a day ago

Could you try to verify on your own?

Like
bottom of page