Team Ai
Datasetpublic

ysn-rfd/text-dataset-tiny-code-script-py-format

USED of tahamajs/medicine_ds_persian for .parquet file USED of Alijafarixcs2/persian-it-llama2-2k for .parquet file USED of Abirate/english_quotes for .jsonl file NEW FILES (05/12/2025) NEW FILES (12/26/2025) NEW FILES (02/15/2026)

sourceHugging Faceapache-2.0updated 4mo agoView on Hugging Face
3likes1.6kdownloads
class_std_day1_1.py31 linesDownload Raw Back to basic_python_study
1class Person:
2  def __init__(self, name, age):
3    self.name = name
4    self.age = age
5
6user = Person("John", 36)
7
8print(user.name)
9print(user.age)
10
11#--------------------------------------
12
13class Person2:
14  def __init__(self, name, age):
15    self.name = name
16    self.age = age
17
18  def __str__(self):
19    return f"{self.name}({self.age})"
20
21user2 = Person2("John", 36)
22
23print(user2)
24
25
26
27
28
29
30
31